I am writing a simple Client Server Applications, where I send a HTTP
request to server and fetch the response and process on Windows Mobile
Client.
I am using Wininet functions, InternetOpen, InternetOpenUrl,
InternetRead...
The request and response works 90% of the times, but rest 10% it
returns either 12150 or 87.
I need to pass header information to validate the request on the
server, so I am making use of InternetOpenUrl header data...
if ((hHttpSession = InternetOpen(_T("YYY"), INTERNET_OPEN_TYPE_DIRECT,
NULL, NULL, 0)) == NULL)
{
//Log the error
return 0;
}
hHttpRequest = InternetOpenUrl(hHttpSession, str1, pThreadParm-
>pHeader , headerLen
, INTERNET_FLAG_RAW_DATA|INTERNET_FLAG_RELOAD, NULL);
if(hHttpRequest == NULL)
{
//Log the error // Here GetLastError returns either 12150 or
87...
return 0;
}
Can someone shed some light on this issue
12150 ERROR_HTTP_HEADER_NOT_FOUND "The requested header could not be located"
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/pocketpc-prog/200906/1