Discussion:
InternetOpenUrl
(too old to reply)
Petar Popara
2004-12-08 10:23:36 UTC
Permalink
InternetOpenUrl sends GET request? Where can I see server response? In
my case InternetOpenUrl fails and GetLastError() returns 0.
Brian Combs
2004-12-09 21:30:43 UTC
Permalink
Hello
You can use debug build of WinInet to see what is happening.
884931 How to use the debug version of the Wininet.dll file for Internet
http://support.microsoft.com/?id=884931

Thanks
Brian [MSFT]
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Petar Popara" <***@mail.net>
| Subject: InternetOpenUrl
| Date: Wed, 8 Dec 2004 11:23:36 +0100
| Lines: 5
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <OqJtq#***@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.inetsdk.programming.wininet
| NNTP-Posting-Host: 193.138.1.206
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.inetsdk.programming.wininet:11897
| X-Tomcat-NG: microsoft.public.inetsdk.programming.wininet
|
|
| InternetOpenUrl sends GET request? Where can I see server response?
In
| my case InternetOpenUrl fails and GetLastError() returns 0.
|
|
|
Brian Cryer
2004-12-10 09:04:47 UTC
Permalink
Post by Petar Popara
InternetOpenUrl sends GET request? Where can I see server response? In
my case InternetOpenUrl fails and GetLastError() returns 0.
What I do in one of my applications is to call HttpQueryInfo if
InternetOpenUrl fails. That returns back the header information associated
with an HTTP server request. Details here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/httpqueryinfo.asp.
Be aware that this makes its own request to the server, so its not quite the
same as seeing the server response to InternetOpenUrl but it may be close
enough.

Brian Cryer

www.cryer.co.uk/brian
Paul Baker [MVP, Windows - SDK]
2004-12-10 14:55:24 UTC
Permalink
In addition to what Brian Combs asks, I recommend that both Petar and Brian
Cryer try to simplify their code. In the process, they may find the problem.
If not, post the simplified code.

Paul
Post by Brian Cryer
Post by Petar Popara
InternetOpenUrl sends GET request? Where can I see server response? In
my case InternetOpenUrl fails and GetLastError() returns 0.
What I do in one of my applications is to call HttpQueryInfo if
InternetOpenUrl fails. That returns back the header information associated
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/httpqueryinfo.asp.
Post by Brian Cryer
Be aware that this makes its own request to the server, so its not quite the
same as seeing the server response to InternetOpenUrl but it may be close
enough.
Brian Cryer
www.cryer.co.uk/brian
Brian Cryer
2004-12-13 09:15:32 UTC
Permalink
Post by Paul Baker [MVP, Windows - SDK]
In addition to what Brian Combs asks, I recommend that both Petar and Brian
Cryer try to simplify their code. In the process, they may find the problem.
If not, post the simplified code.
Paul
Good advice - IF the problem lies with the code.

I first looked into this because I knew that occasionally the problem would
lie with the server (or at least I would understand the nature of the
problem from the server response) - I was working on a link checker at the
time.

There are times when there is a genuine requirement to see the server
response.

Brian.

www.cryer.co.uk/brian
Paul Baker [MVP, Windows - SDK]
2004-12-13 14:40:36 UTC
Permalink
There may or may not be a problem with the code. I would like to eliminate
that possibility by examining the code.

If you think it's the server that's doing it, you could telnet on port 80 to
the server, send HTTP commands and view the response.

Paul
Post by Paul Baker [MVP, Windows - SDK]
Post by Paul Baker [MVP, Windows - SDK]
In addition to what Brian Combs asks, I recommend that both Petar and
Brian
Post by Paul Baker [MVP, Windows - SDK]
Cryer try to simplify their code. In the process, they may find the
problem.
Post by Paul Baker [MVP, Windows - SDK]
If not, post the simplified code.
Paul
Good advice - IF the problem lies with the code.
I first looked into this because I knew that occasionally the problem would
lie with the server (or at least I would understand the nature of the
problem from the server response) - I was working on a link checker at the
time.
There are times when there is a genuine requirement to see the server
response.
Brian.
www.cryer.co.uk/brian
Paul Baker [MVP, Windows - SDK]
2004-12-13 14:52:21 UTC
Permalink
Here is an Adobe KB article about it, although I have to say it is kind of
lame. I am suprised it doesn't say "try standing on your head".

You'll note that one of the implications is that it could be a server
problem (but I really don't think so). You'll also note that there are
suggestions for both upgrading Acrobat Reader and Internet Explorer. This
implies that they fixed something that is related, but they are too lame to
say what.

http://www.adobe.com/support/techdocs/325875.html

Paul
Post by Paul Baker [MVP, Windows - SDK]
There may or may not be a problem with the code. I would like to eliminate
that possibility by examining the code.
If you think it's the server that's doing it, you could telnet on port 80 to
the server, send HTTP commands and view the response.
Paul
Post by Paul Baker [MVP, Windows - SDK]
Post by Paul Baker [MVP, Windows - SDK]
In addition to what Brian Combs asks, I recommend that both Petar and
Brian
Post by Paul Baker [MVP, Windows - SDK]
Cryer try to simplify their code. In the process, they may find the
problem.
Post by Paul Baker [MVP, Windows - SDK]
If not, post the simplified code.
Paul
Good advice - IF the problem lies with the code.
I first looked into this because I knew that occasionally the problem
would
Post by Paul Baker [MVP, Windows - SDK]
lie with the server (or at least I would understand the nature of the
problem from the server response) - I was working on a link checker at the
time.
There are times when there is a genuine requirement to see the server
response.
Brian.
www.cryer.co.uk/brian
Paul Baker [MVP, Windows - SDK]
2004-12-13 14:58:25 UTC
Permalink
Sorry, this has nothing to do with it. I meant to post this to an IIS
newsgroup and got mixed up :(

Please disregard!!!

Paul
Post by Paul Baker [MVP, Windows - SDK]
Here is an Adobe KB article about it, although I have to say it is kind of
lame. I am suprised it doesn't say "try standing on your head".
You'll note that one of the implications is that it could be a server
problem (but I really don't think so). You'll also note that there are
suggestions for both upgrading Acrobat Reader and Internet Explorer. This
implies that they fixed something that is related, but they are too lame to
say what.
http://www.adobe.com/support/techdocs/325875.html
Paul
Post by Paul Baker [MVP, Windows - SDK]
There may or may not be a problem with the code. I would like to eliminate
that possibility by examining the code.
If you think it's the server that's doing it, you could telnet on port
80
Post by Paul Baker [MVP, Windows - SDK]
to
Post by Paul Baker [MVP, Windows - SDK]
the server, send HTTP commands and view the response.
Paul
in
Post by Paul Baker [MVP, Windows - SDK]
Post by Paul Baker [MVP, Windows - SDK]
Post by Paul Baker [MVP, Windows - SDK]
In addition to what Brian Combs asks, I recommend that both Petar and
Brian
Post by Paul Baker [MVP, Windows - SDK]
Cryer try to simplify their code. In the process, they may find the
problem.
Post by Paul Baker [MVP, Windows - SDK]
If not, post the simplified code.
Paul
Good advice - IF the problem lies with the code.
I first looked into this because I knew that occasionally the problem
would
Post by Paul Baker [MVP, Windows - SDK]
lie with the server (or at least I would understand the nature of the
problem from the server response) - I was working on a link checker at
the
Post by Paul Baker [MVP, Windows - SDK]
Post by Paul Baker [MVP, Windows - SDK]
time.
There are times when there is a genuine requirement to see the server
response.
Brian.
www.cryer.co.uk/brian
Petar Popara
2004-12-13 15:56:35 UTC
Permalink
Thank you, all.

Loading...