curl-library
Re: HTTPS POST
From: Alex Kelly <mail_at_aekelly.com>
Date: Tue, 09 May 2006 19:29:15 -0400
Date: Tue, 09 May 2006 19:29:15 -0400
> No, it returns the HTTP response code. This should be 200-299 on success
> or
> some other value on failure.
Oh, actual response codes, like 200 OK and 404 Not Found, etc., got it.
>> So far, I've been dividing the results of curl_easy_perform using a loop
>> with strtok and the newline character, '\n'. I could make an if
>> statement
>> using strstr to look for the string "not authorized" or whatever the
>> remote server is returning on failure in the results (worth a shot).
>
> This isn't nearly as reliable since the server could change its output
> at any time.
So a statement to check the value of the response code then?
Am I getting closer!? heh, thanks for your patience, dan. =)
Received on 2006-05-10