 |
 |
 |
|
|  |  |
 |
WinHttpSendRequest Add comment W32 Constants Translate this page |
 |
 |
|
The WinHttpSendRequest function sends the specified request to the HTTP server. |
 |  | | Code examples: |  | |
|
 |  | | Declaration: |  |  |
BOOL WinHttpSendRequest(
HINTERNET hRequest,
LPCWSTR pwszHeaders,
DWORD dwHeadersLength,
LPVOID lpOptional,
DWORD dwOptionalLength,
DWORD dwTotalLength,
DWORD_PTR dwContext
);
|
 |  |  | | FoxPro declaration: |  |  |
DECLARE INTEGER WinHttpSendRequest IN winhttp;
INTEGER hRequest,;
STRING @ pwszHeaders,;
INTEGER dwHdrsLen,;
STRING @ lpOptional,;
INTEGER dwOptionalLen,;
INTEGER dwTotalLen,;
INTEGER dwContext
|
 |  |  | | Parameters: |  | hRequest
[in] HINTERNET handle returned by WinHttpOpenRequest.
pwszHeaders
[in] Pointer to a string that contains the additional headers to append to the request.
dwHeadersLength
[in] Unsigned long integer value that contains the length, in characters, of the additional headers.
lpOptional
[in] Pointer to a buffer that contains any optional data to send immediately after the request headers.
dwOptionalLength
[in] Unsigned long integer value that contains the length, in bytes, of the optional data.
dwTotalLength
[in] Unsigned long integer value that contains the length, in bytes, of the total data sent.
dwContext
[in] Pointer to a pointer-sized variable that contains an application-defined value that is passed, along with the request handle, to any callback functions. |
 |  | | Return value: |  | | Returns TRUE if successful, or FALSE otherwise. |
 |  | | Word Index links for the WinHttpSendRequest : |  | |
|
 |  | | Translate this page: |  | |  |  | | • |  | | Created: | 2003-04-08 12:07:30 | | Modified: | 2003-04-08 12:10:07 | Visited in last 7 days: 12 |
 |
 |
User Contributed Notes: |
 |
 |
 |
 |
 |
 | Malcolm Greene | 2006-06-26 16:00:39 |  |
 |
 |
 | Hi Anatoliy,
Is there a way to 'hook' WinHttpSendRequest so that one can report progress using a progressmeter.
It seems like its very easy to report progress on http based file downloads, but no way to do the same with http based file (or forms with large data block) uploads.
Any suggestions?
Thanks! Malcolm Greene |  |
 |
 |
 |
 | A.M. | 2006-06-26 16:52:44 |  |
 |
 |
 | MSDN says that this function can operate either synchronously or asynchronously. But as I can see it requires registering a callback function -- dwContext parameter -- plus setting WINHTP_FLAG_ASYNC flag. |  |
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
Copyright © 2001-2013
News2News, Inc.
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Privacy policy
|
 |
 |
 |
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc. |
 |
 |
|
 |
 |
|
|