Diff of /trunk/src/net_io.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 295 by harbaum, Thu Jul 30 07:57:48 2009 UTC revision 296 by harbaum, Thu Sep 24 18:47:41 2009 UTC
# Line 30  static struct http_message_s { Line 30  static struct http_message_s {
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" },
# Line 252  static void *worker_thread(void *ptr) { Line 255  static void *worker_thread(void *ptr) {
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    

Legend:
Removed from v.295  
changed lines
  Added in v.296