Click here to Skip to main content
12,241,499 members (54,333 online)
Rate this:
 
Please Sign up or sign in to vote.
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 3:24am
Edited 1-Jan-13 4:19am
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
Top Experts
Last 24hrsThis month


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100