Re: InternetOpenUrl Returns 12150 or 87

Tech-Archive recommends: Fix windows errors by optimizing your registry




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

.



Relevant Pages

  • Re: About http method trace track options in IIS4
    ... I doubt URLScan will have any noticable affect on the performance of your ... "translate:" header because it sometimes causes lots of urlscan logging you ... request. ... of allowed parts of requests reaching the server. ...
    (microsoft.public.inetserver.iis.security)
  • Re: [Full-Disclosure] DoS in Apache 2.0.52 ?
    ... OpenSSL/0.9.7c DAV/2 PHP/4.3.4 Server. ... >> lot of CPU usage and hangs the webserver. ... >> considers it as an extension to the previous line header. ... That fix was for the long request field header when the ...
    (Full-Disclosure)
  • Re: URLScan and Server Variables - ASP.NET
    ... server variable to hold my virtual Directory Name - VirDir. ... Request will be rejected. ... used to specify a replacement for IIS's built in 'Server' header ... Maps to webhits.dll, part of Index Server ...
    (microsoft.public.inetserver.iis.security)
  • Re: Cant see Plows messages
    ... When you request that header the server then searches ... Google Groups treats this request by ...
    (alt.guitar)
  • Re: Apache webserver
    ... Do you have a complete example of persistance using the Apace server? ... request arguments, for example, each request type has an ACTION field ... So the CGI program function) is just a big switch. ... Then the mainprepend the output the header to ...
    (comp.sys.ibm.as400.misc)