API Trading with CURL and IG

Forums ProRealTime English forum General trading discussions API Trading with CURL and IG

Viewing 1 post (of 1 total)
  • #170244

    Hi,

    I want to retrieve DATA ig via their API. It works very well via a script on my dedicated, but if I run it via a CRON task I cannot fill my cookies with the X_SECURITY_TOKEN and the CST. The verbose gives me a request.txt file which contains all the information. So there is indeed an exchange between my server and that of ig, everything works except the filling of the cookie.

    Here is my very light script:

    The file that is created is this one:

    so it’s not a writing problem. The script below works fine:

    If I comment out CURLOPT_COOKIEJAR the file is created and is empty. If I leave the line active then the file is created with the headers listed above, but without any other info …

    Any idea please?

Viewing 1 post (of 1 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login