Click here to Skip to main content
Sign Up to vote bad
good
See more: C++
I want to send a text file to a server. One php site will receive this text file on the server side. Can anyone tell me what will be lpszHeaders,2nd parameter of HttpAddRequestHeaders in this case?
 
BOOL HttpAddRequestHeaders(
  _In_  HINTERNET hRequest,
   _In_  LPCTSTR lpszHeaders,
  _In_  DWORD dwHeadersLength,
  _In_  DWORD dwModifiers
);
 
 
Thanks
Posted 1-Jan-13 2:24am
Edited 1-Jan-13 3:19am


1 solution

It will hold the the content-type definition followed by the text itself followed by CR/LF (carriage return/line feed) pair ("r\n") For example: Content-Type: text/html; charset=ISO-8859-4
 
See also: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Christian Graus 448
1 Ron Beyer 286
2 samadhan_kshirsagar 229
3 OriginalGriff 223
4 Tadit Dash 213
0 Sergey Alexandrovich Kryukov 7,017
1 Prasad_Kulkarni 3,815
2 OriginalGriff 3,557
3 _Amy 3,372
4 CPallini 3,010


Advertise | Privacy | Mobile
Web02 | 2.6.130619.1 | Last Updated 7 Mar 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid