A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to ignore IEs "offline mode" when not using IE ?



 
 
Thread Tools Display Modes
  #1  
Old March 26th 18, 08:17 AM posted to microsoft.public.windowsxp.general,comp.os.ms-windows.programmer.win32
R.Wieser
external usenet poster
 
Posts: 1,302
Default How to ignore IEs "offline mode" when not using IE ?

Hello all,

Yesterday, on my XPsp3 machine, I ran into IEs "offline mode" setting having
a far-reaching effect, blocking me from using an ActiveX component like
"Microsoft.XMLHTTP", and also (functions within) wininet.dll.

A suggested work-around for the latter using InternetSetOption with the
INTERNET_OPTION_IGNORE_OFLINE argument does not seem to work (and I found
some article mentioning its broken), and using it with
INTERNET_OPTION_CONNECTED_STATE equals INTERNET_STATE_CONNECTED does not
seem to have any effect either.

tl;dr:
How do I use activex components and/or wininet.dll functions without being
bothered with the *IE programs* offline setting (which I want to keep that
way).


Ads
  #2  
Old March 26th 18, 01:24 PM posted to microsoft.public.windowsxp.general,comp.os.ms-windows.programmer.win32
R.Wieser
external usenet poster
 
Posts: 1,302
Default How to ignore IEs "offline mode" when not using IE ? - update


and using it with INTERNET_OPTION_CONNECTED_STATE equals
INTERNET_STATE_CONNECTED does not seem to have any effect either.


Ofcource, I should use the correct argument ... :-\ As it turns out it
needed to be (a pointer to) *two* 4 byte values, with the first the above,
and the second zero. When I did that I could switch from off- to online
mode.

**** I stil would like to use the first method though (ignoring - for the
current program/script only! - the offline status). If anyone knows how to
get that to work (for XPsp3 & IE6) I would still like to know.

Regards,
Rudy Wieser



  #3  
Old March 26th 18, 06:22 PM posted to microsoft.public.windowsxp.general,comp.os.ms-windows.programmer.win32
JJ[_11_]
external usenet poster
 
Posts: 744
Default How to ignore IEs "offline mode" when not using IE ? - update

On Mon, 26 Mar 2018 14:24:01 +0200, R.Wieser wrote:
A suggested work-around for the latter using InternetSetOption with the
INTERNET_OPTION_IGNORE_OFLINE argument does not seem to work (and I found
some article mentioning its broken),


**** I stil would like to use the first method though (ignoring - for the
current program/script only! - the offline status). If anyone knows how to
get that to work (for XPsp3 & IE6) I would still like to know.


Have you tried using IServerXMLHTTPRequest ("Msxml2.ServerXMLHTTP") instead
of IXMLHTTPRequest? IServerXMLHTTPRequest has better HTTPS handling, so
maybe it has better code on respecting the INTERNET_OPTION_IGNORE_OFFLINE
option.

Also, in Windows XP SP3, the "Msxml2.ServerXMLHTTP" class name defaults to
version 3.0, which is equivalent to "Msxml2.ServerXMLHTTP.3.0". You might
also want to check high versions - assuming that they're installed in your
system.
  #4  
Old March 26th 18, 08:36 PM posted to microsoft.public.windowsxp.general,comp.os.ms-windows.programmer.win32
R.Wieser
external usenet poster
 
Posts: 1,302
Default How to ignore IEs "offline mode" when not using IE ? - update

JJ,

Have you tried using IServerXMLHTTPRequest ("Msxml2.ServerXMLHTTP")


Thanks for that suggestion.

so maybe it has better code on respecting the
INTERNET_OPTION_IGNORE_OFFLINE option.


It turns out its worse than that: It seems that it doesn't even need that
option to be able to go online and retrieve the requested webpage. :-)

In other words, while an old(er) Microsoft.XMLHTTP doesn't, the new(er)
Msxml2.ServerXMLHTTP.3.0 has not problems with it (ignores the "work
offline" setting by default).

.... now I only need to figure out how it does that, so I too can use
mswinsock functions (InternetReadFile) without bumping into that "working
offline" mode.

Regards,
Rudy Wieser


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 10:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.