Click here to Skip to main content
16,009,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?

C++
BOOL HttpAddRequestHeaders(
  _In_  HINTERNET hRequest,
   _In_  LPCTSTR lpszHeaders,
  _In_  DWORD dwHeadersLength,
  _In_  DWORD dwModifiers
);


Thanks
Posted
Updated 1-Jan-13 3:19am
v2

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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900