Click here to Skip to main content
11,632,450 members (83,955 online)
Rate this: bad
good
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 2:24am
Edited 1-Jan-13 3: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
0 OriginalGriff 8,498
1 Sergey Alexandrovich Kryukov 8,149
2 Mika Wendelius 6,260
3 F-ES Sitecore 2,321
4 Suvendu Shekhar Giri 1,995


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 7 Mar 2013
Copyright © CodeProject, 1999-2015
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