Diff for /parser3/src/main/pa_http.C between versions 1.58 and 1.62

version 1.58, 2013/04/21 20:37:55 version 1.62, 2015/04/02 22:04:41
Line 15 Line 15
   
 volatile const char * IDENT_PA_HTTP_C="$Id$" IDENT_PA_HTTP_H;   volatile const char * IDENT_PA_HTTP_C="$Id$" IDENT_PA_HTTP_H; 
   
   #ifdef _MSC_VER
   #include <windows.h>
   #else
   #define closesocket close
   #endif
   
 // defines  // defines
   
 #define HTTP_METHOD_NAME        "method"  #define HTTP_METHOD_NAME        "method"
Line 24  volatile const char * IDENT_PA_HTTP_C="$ Line 30  volatile const char * IDENT_PA_HTTP_C="$
 #define HTTP_HEADERS_NAME       "headers"  #define HTTP_HEADERS_NAME       "headers"
 #define HTTP_FORM_ENCTYPE_NAME  "enctype"  #define HTTP_FORM_ENCTYPE_NAME  "enctype"
 #define HTTP_ANY_STATUS_NAME    "any-status"  #define HTTP_ANY_STATUS_NAME    "any-status"
 #define HTTP_OMIT_POST_CHARSET_NAME     "omit-post-charset"     // ^file::load[...;http://...;$.form[...]$.method[post]]  #define HTTP_OMIT_POST_CHARSET_NAME     "omit-post-charset"     // ^file::load[...;http://...;$.method[post]] by default adds charset to content-type
                                                                                                         // by default add charset to content-type  
   
 #define HTTP_TABLES_NAME "tables"  #define HTTP_TABLES_NAME "tables"
   
Line 34  volatile const char * IDENT_PA_HTTP_C="$ Line 39  volatile const char * IDENT_PA_HTTP_C="$
   
 #define DEFAULT_USER_AGENT "parser3"  #define DEFAULT_USER_AGENT "parser3"
   
 #       ifndef INADDR_NONE  #ifndef INADDR_NONE
 #               define INADDR_NONE ((ulong) -1)  #define INADDR_NONE ((ulong) -1)
 #       endif  #endif
   
 #undef CRLF  #undef CRLF
 #define CRLF "\r\n"  #define CRLF "\r\n"
Line 342  static void http_pass_header(HashStringV Line 347  static void http_pass_header(HashStringV
                 *info->user_agent_specified=true;                  *info->user_agent_specified=true;
         if(strcasecmp(name_cstr, HTTP_CONTENT_TYPE)==0){          if(strcasecmp(name_cstr, HTTP_CONTENT_TYPE)==0){
                 *info->content_type_specified=true;                  *info->content_type_specified=true;
                 *info->content_type_url_encoded=StrStartFromNC(value.cstr(), HTTP_CONTENT_TYPE_FORM_URLENCODED);                  *info->content_type_url_encoded=pa_strncasecmp(value.cstr(), HTTP_CONTENT_TYPE_FORM_URLENCODED)==0;
         }          }
 }  }
   
Line 684  File_read_http_result pa_internal_file_r Line 689  File_read_http_result pa_internal_file_r
                         asked_remote_charset=&charsets.get(vcharset_name->as_string().change_case(r.charsets.source(), String::CC_UPPER));                          asked_remote_charset=&charsets.get(vcharset_name->as_string().change_case(r.charsets.source(), String::CC_UPPER));
                 }                   } 
                 if(Value* vresponse_charset_name=options->get(PA_RESPONSE_CHARSET_NAME)) {                  if(Value* vresponse_charset_name=options->get(PA_RESPONSE_CHARSET_NAME)) {
                           valid_options++;
                         real_remote_charset=&charsets.get(vresponse_charset_name->as_string().change_case(r.charsets.source(), String::CC_UPPER));                          real_remote_charset=&charsets.get(vresponse_charset_name->as_string().change_case(r.charsets.source(), String::CC_UPPER));
                 }                   } 
                 if(Value* vuser=options->get(HTTP_USER)) {                  if(Value* vuser=options->get(HTTP_USER)) {

Removed from v.1.58  
changed lines
  Added in v.1.62


E-mail: