Using Win32 functions in Visual FoxPro Image Gallery
HTTP Functions (WinHTTP)
WinHttpAddRequestHeaders
WinHttpCloseHandle
WinHttpConnect
WinHttpCrackUrl
WinHttpOpen
WinHttpOpenRequest
WinHttpQueryDataAvailable
WinHttpQueryHeaders
WinHttpReadData
WinHttpReceiveResponse
WinHttpSendRequest
WinHttpSetCredentials
Code examples:
Custom HttpRequest class (WinHTTP)
WinHttpOpenRequest
    Add comment     W32 Constants      Translate this page
The WinHttpOpenRequest function creates an HTTP request handle.
Code examples:
Custom HttpRequest class (WinHTTP)
Declaration:
HINTERNET WinHttpOpenRequest(
  HINTERNET hConnect,
  LPCWSTR pwszVerb,
  LPCWSTR pwszObjectName,
  LPCWSTR pwszVersion,
  LPCWSTR pwszReferrer,
  LPCWSTR* ppwszAcceptTypes,
  DWORD dwFlags
);
FoxPro declaration:
DECLARE INTEGER WinHttpOpenRequest IN winhttp;
    INTEGER hConnect,;
    STRING  pwszVerb,;
    STRING  pwszObjName,;
    STRING  pwszVersion,;
    INTEGER pwszReferrer,;
    INTEGER ppwszAcceptTypes,;
    INTEGER dwFlags

Parameters:
hConnect
[in] HINTERNET connection handle to an HTTP session returned by WinHttpConnect.

pwszVerb
[in] Pointer to a string that contains the HTTP verb to use in the request.

pwszObjectName
[in] Pointer to a string that contains the name of the target resource of the specified HTTP verb.

pwszVersion
[in] Pointer to a string that contains the HTTP version. If this parameter is NULL, the function uses HTTP/1.1.

pwszReferrer
[in] Pointer to a string that specifies the URL of the document from which the URL in the request pwszObjectName was obtained.

ppwszAcceptTypes
[in] Pointer to a null-terminated array of string pointers that specifies media types accepted by the client.

dwFlags
[in] Unsigned long integer value that contains the Internet flag values.
Return value:
Returns a valid HTTP request handle if successful, or NULL if not.
My comment:
MSDN: After the calling application finishes using the HINTERNET handle returned by WinHttpOpenRequest, it must be closed using the WinHttpCloseHandle function.
Word Index links for the WinHttpOpenRequest :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-04-08 12:04:43
Modified: 2003-04-08 12:07:03
Visited in last 7 days: 11
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.164.166)
18 sec.Function: 'RegEnumValue'
1.27 min.Function: 'ShellExecute'
1.62 min.Function: 'SetJob'
1.92 min.Function: 'SearchPath'
2.58 min.Function: 'WinHttpSetCredentials'
2.92 min.Function: 'recv'
3.3 min.Function: 'UnlockFile'
4.68 min.Function: 'RegisterHotKey'
5.43 min.Function: 'UnregisterHotKey'
5.82 min.Function: 'SetupGetInfInformation'
Google
Advertise here!