HTTP status codes with Libcurlssl

BlitzMax Forums/Brucey's Modules/HTTP status codes with Libcurlssl

jkrankie(Posted 2011) [#1]
I'm trying to get the HTTP status codes from libcurlssl, and am having trouble.

From what i've read, i should be able to get a TcurlInfo object back from curl.Getinfo() on which i can then use the responseCode() method to get the status code, which i can do, but it always returns 0, and i know i should be getting a 200 or 400.

Anyone else encountered this? or even better found a solution...

Cheers
Charlie


jkrankie(Posted 2011) [#2]
In addition, i have googled this, and there are some answers, but they're all using something along the lines of this:

curl_easy_getinfo (session, CURLINFO_RESPONSE_CODE, &http_code);

unfortunately, the curl_easy_getinfo(); doesn't appear to be part of the libcurlssl mod.

Cheers
Charlie