Changeset 2 for trunk/ciupdsocx.c

Show
Ignore:
Timestamp:
10/09/08 10:36:14 (4 years ago)
Author:
heitor.barbieri
Message:

Protocolo HTTP define /r/n e não /n como fim do cabeçalho da mensagem. Alguns sites não retornavam conteúdo por causa disso.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ciupdsocx.c

    r1 r2  
    2828#if GEN_MAIN 
    2929     #define PORT            80 
    30      #define MESSAGE         "HEAD / HTTP/1.0\n\n" 
     30     #define MESSAGE         "HEAD / HTTP/1.0\r\n\r\n" 
    3131     #define SERVERHOST      "www.bireme.br" 
    3232#endif /*  GEN_MAIN */ 
     
    3535 
    3636#if 0 
    37        "HEAD /'message' HTTP/1.0\n\n" 
     37       "HEAD /'message' HTTP/1.0\r\n\r\n" 
    3838       "GET / HTTP/1.0\nUser-Agent: Mozilla/3.0 (compatible; Opera/3.0; Windows 95/NT4)\nAccept: */*\nHost: birk105.studby.uio.no:81\n\n" 
    3939#endif 
     
    132132       char *serverhost,     /* www.bireme.br */                   /* serverofi.bireme.br */ 
    133133       uint16_t port,        /* 80 */                              /* 1417 */ 
    134        char *message,        /* HEAD|GET /docpath HTTP/1.0\n\n */  /* wtrig2 c=dff maxrel=3 minsim=0.87 text=diabetes mellitus */ 
     134       char *message,        /* HEAD|GET /docpath HTTP/1.0\r\n\r\n */  /* wtrig2 c=dff maxrel=3 minsim=0.87 text=diabetes mellitus */ 
    135135       char *buffer,         /* results */ 
    136136       int buffersize,       /* max size */