Re: InternetOpenUrl Returns 12150 or 87
- From: "FmF via PocketPCJunkies.com" <u49788@uwe>
- Date: Wed, 01 Jul 2009 14:43:47 GMT
Maby you are passing a wrong header.
12150 ERROR_HTTP_HEADER_NOT_FOUND "The requested header could not be located"
Krish wrote:
Hi,
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
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/pocketpc-prog/200906/1
.
- Prev by Date: Install Pocket project
- Next by Date: Re: Install Pocket project
- Previous by thread: Install Pocket project
- Next by thread: how to prevent pocketpc setup from running on smartphone
- Index(es):
Relevant Pages
|