 |
HttpSendRequest ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
This function sends the specified request to the HTTP server. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI HttpSendRequest(
HINTERNET hRequest,
LPCTSTR lpszHeaders,
DWORD dwHeadersLength,
LPVOID lpOptional,
DWORD dwOptionalLength
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER HttpSendRequest IN wininet;
INTEGER hRequest,;
STRING @lpszHeaders,;
INTEGER dwHeadersLength,;
STRING @lpOptional,;
INTEGER dwOptionalLength
|
 |
 |
 |
| Parameters: |
 |
hRequest
[in] Open HTTP request handle returned by HttpOpenRequest.
lpszHeaders
[in] Long pointer to null-terminated strings that contain additional headers to be appended to the request. This parameter can be NULL if there are no additional headers to append.
dwHeadersLength
[in] Specifies the length, in characters, of the additional headers.
lpOptional
[in] Long pointer to any optional data to send immediately after the request headers.
dwOptionalLength
[in] Specifies the length, in bytes, of the optional data. |
 |
 |
| Return value: |
 |
| TRUE indicates success. FALSE indicates failure. |
 |
 |
| Usage: |
 |
IF HttpSendRequest(m.hRequest, @cHeaders,;
LEN(cHeaders), @cBody, LEN(cBody)) = 0
ErrorCode = GetLastError()
ENDIF
|
 |
 |
| My comment: |
 |
| See HttpOpenRequest, InternetQueryDataAvailable, InternetReadFile, InternetCloseHandle. |
 |
 |
| Word Index links for the HttpSendRequest : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-11-02 18:27:30 | | Modified: | 2007-06-11 21:54:20 | Visited in last 7 days: 44 |