RyomaEchizen

I noticed that calls to HttpOpenRequest that worked flawlessly in IE6 are now giving a nice ERROR_INTERNET_UNRECOGNIZED_SCHEME error in IE7

Here is an excerpt of the code I use:

DWORD dwFlags=INTERNET_FLAG_TRANSFER_ASCII | INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_CACHE_WRITE;

hOpen = InternetOpen (_T("Toolbar"), INTERNET_OPEN_TYPE_PRECONFIG , NULL, 0,dwFlags);

HINTERNET hSession=::InternetConnect(hOpen,sServer,nPort,NULL,NULL,INTERNET_SERVICE_HTTP,dwFlags,dwContext);

hReq=::HttpOpenRequest(hSession,_T("GET"),fullUrl,
NULL,sServer,NULL,dwFlags,dwContext);


Where sServer is in the form "mydomain.com" and fullUrl is in the form /root/file.ext

So how is this fixable

Sincerely
RyomaEchizen


Re: Internet Explorer Extension Development Changes in WinInet in IE 7 ?

Praveen Chandran

The same problem is with me.

Can anyone give the suggestion for that





Re: Internet Explorer Extension Development Changes in WinInet in IE 7 ?

Reza Nourai - MSFT

It works fine if you pass the full URL as fullUrl (ex: mydomain.com/root/file.ext) and pass NULL as szReferrer in HttpOpenRequest. I am not sure if this is a change in functionality or if the function was not behaving correctly before. The behavior now matches exactly what the MSDN documentation states. Unfortunately, I don't have a machine handy that still has IE6 on it, so I can't tell you what happens there.

-Reza