Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

InternetOpenUrl Returns 12150 or 87

56 views
Skip to first unread message

Krish

unread,
Jun 22, 2009, 4:20:48 PM6/22/09
to
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

FmF via PocketPCJunkies.com

unread,
Jul 1, 2009, 10:43:47 AM7/1/09
to

Maby you are passing a wrong header.

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

0 new messages