|
|
| version 1.7, 2007/04/23 10:30:32 | version 1.8, 2008/02/14 18:31:38 |
|---|---|
| Line 538 File_read_http_result pa_internal_file_r | Line 538 File_read_http_result pa_internal_file_r |
| head << "user-agent: " DEFAULT_USER_AGENT CRLF; | head << "user-agent: " DEFAULT_USER_AGENT CRLF; |
| if(body_cstr) { | if(body_cstr) { |
| // recode those pieces which are not in String::L_URI lang | |
| // [those violating HTTP standard, but widly used] | |
| /* | |
| body_cstr=Charset::transcode( | |
| String::C(body_cstr, strlen(body_cstr)), | |
| charsets.source(), | |
| *asked_remote_charset); | |
| */ | |
| head << "content-length: " << format(strlen(body_cstr), "%u") << CRLF; | head << "content-length: " << format(strlen(body_cstr), "%u") << CRLF; |
| } | } |
| const char* head_cstr=head.cstr(String::L_UNSPECIFIED, 0, &charsets); | const char* head_cstr=head.cstr(String::L_UNSPECIFIED, 0, &charsets); |
| // recode those pieces which are not in String::L_URI lang | |
| // [those violating HTTP standard, but widly used] | |
| /* | |
| head_cstr=Charset::transcode( | |
| String::C(head_cstr, strlen(head_cstr)), | |
| charsets.source(), | |
| *asked_remote_charset); | |
| */ | |
| // head + end of header | // head + end of header |
| request_head_and_body << head_cstr << CRLF; | request_head_and_body << head_cstr << CRLF; |
| // body | // body |
| if(body_cstr) | if(body_cstr) |
| request_head_and_body << body_cstr; | request_head_and_body << body_cstr; |