30 |
} http_messages [] = { |
} http_messages [] = { |
31 |
{ 0, "Curl internal failure" }, |
{ 0, "Curl internal failure" }, |
32 |
{ 200, "Ok" }, |
{ 200, "Ok" }, |
33 |
|
{ 301, "Moved permanently" }, |
34 |
|
{ 302, "Found" }, |
35 |
|
{ 303, "See Other" }, |
36 |
{ 400, "Bad Request (area too big?)" }, |
{ 400, "Bad Request (area too big?)" }, |
37 |
{ 401, "Unauthorized (wrong user/password?)" }, |
{ 401, "Unauthorized (wrong user/password?)" }, |
38 |
{ 403, "Forbidden" }, |
{ 403, "Forbidden" }, |
255 |
|
|
256 |
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, request->buffer); |
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, request->buffer); |
257 |
|
|
258 |
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1l); |
259 |
|
|
260 |
/* play nice and report some user agent */ |
/* play nice and report some user agent */ |
261 |
curl_easy_setopt(curl, CURLOPT_USERAGENT, PACKAGE "-libcurl/" VERSION); |
curl_easy_setopt(curl, CURLOPT_USERAGENT, PACKAGE "-libcurl/" VERSION); |
262 |
|
|