Click here to Skip to main content
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
Your Filters
Interested
Ignored
     
0 Shai Vashdi 576
1 Sergey Alexandrovich Kryukov 230
2 Tadit Dash 215
3 OriginalGriff 183
4 Peter Leow 130
0 Sergey Alexandrovich Kryukov 9,325
1 OriginalGriff 5,473
2 Peter Leow 4,150
3 Maciej Los 3,540
4 Abhinav S 3,333


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