Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > inetserver iis > february 2005 >

inetserver iis : How to download another webpage from ActiveX control


David Wang [Msft]
2/21/2005 3:24:58 AM
Have you tried to debug your ActiveX control to see why it is not working?

You may be missing permissions or making false assumptions about the OS, but
you will have to debug your control to figure out the reason.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
I developed an ActiveX control to download another webpage and parse it to
obtain data from the web server. It works on Windows Server 2000 + IIS 5.0,
but does not on Windows Server 2003.

Can anybody help me to point the reason out? I really wish it can work on
IIS6.0. Thank you!


Zhaohui


wu_zhaohui
2/21/2005 6:06:01 PM
I developed an ActiveX control to download another webpage and parse it to
obtain data from the web server. It works on Windows Server 2000 + IIS 5.0,
but does not on Windows Server 2003.

Can anybody help me to point the reason out? I really wish it can work on
IIS6.0. Thank you!


Zhaohui

David Wang [Msft]
2/22/2005 1:48:22 PM
IIS6 returns "400 Bad Request" for very good reasons. You can look up log
files in %windir%\System32\LogFiles\HTTPErr\*.log for the reason.

I suspect you are not using CRLF to terminate the request lines, which is in
violation of HTTP spec and hence denied by IIS6.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
Thank you!

Yes, I tried and found it always return a text string of "<H1>Bad
Request</H1>" as response to the HTTP request. But, it works after I moved
the function code from ActiveX control to a client program! And the same
when the website is installed on a IIS5!

I suppose it is a security setting of IIS 6.0, but I cannot find any hint to
close it.

Zhaohui



"David Wang [Msft]" <someone@online.microsoft.com> дÈëÓʼþ
news:egOp5pAGFHA.1836@tk2msftngp13.phx.gbl...
Have you tried to debug your ActiveX control to see why it is not working?

You may be missing permissions or making false assumptions about the OS, but
you will have to debug your control to figure out the reason.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
I developed an ActiveX control to download another webpage and parse it to
obtain data from the web server. It works on Windows Server 2000 + IIS 5.0,
but does not on Windows Server 2003.

Can anybody help me to point the reason out? I really wish it can work on
IIS6.0. Thank you!


Zhaohui




wu_zhaohui
2/22/2005 5:33:52 PM
Thank you!

Yes, I tried and found it always return a text string of "<H1>Bad
Request</H1>" as response to the HTTP request. But, it works after I moved
the function code from ActiveX control to a client program! And the same
when the website is installed on a IIS5!

I suppose it is a security setting of IIS 6.0, but I cannot find any hint to
close it.

Zhaohui



"David Wang [Msft]" <someone@online.microsoft.com> дÈëÓʼþ
news:egOp5pAGFHA.1836@tk2msftngp13.phx.gbl...
Have you tried to debug your ActiveX control to see why it is not working?

You may be missing permissions or making false assumptions about the OS, but
you will have to debug your control to figure out the reason.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
I developed an ActiveX control to download another webpage and parse it to
obtain data from the web server. It works on Windows Server 2000 + IIS 5.0,
but does not on Windows Server 2003.

Can anybody help me to point the reason out? I really wish it can work on
IIS6.0. Thank you!


Zhaohui



wu_zhaohui
2/25/2005 2:42:40 PM
Hi David,

Thank you very much.

It is really an issue of HTTP protocol version. After I download a new
Platform SDK from microsoft msdn website and rebuild the project, my ActiveX
control now can access webpages on a IIS 6 server.

Best wishes,
Zhaohui


"David Wang [Msft]" <someone@online.microsoft.com> дÈëÓʼþ
news:O9rOR8SGFHA.560@TK2MSFTNGP15.phx.gbl...
IIS6 returns "400 Bad Request" for very good reasons. You can look up log
files in %windir%\System32\LogFiles\HTTPErr\*.log for the reason.

I suspect you are not using CRLF to terminate the request lines, which is in
violation of HTTP spec and hence denied by IIS6.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
Thank you!

Yes, I tried and found it always return a text string of "<H1>Bad
Request</H1>" as response to the HTTP request. But, it works after I moved
the function code from ActiveX control to a client program! And the same
when the website is installed on a IIS5!

I suppose it is a security setting of IIS 6.0, but I cannot find any hint to
close it.

Zhaohui



"David Wang [Msft]" <someone@online.microsoft.com> дÈëÓʼþ
news:egOp5pAGFHA.1836@tk2msftngp13.phx.gbl...
Have you tried to debug your ActiveX control to see why it is not working?

You may be missing permissions or making false assumptions about the OS, but
you will have to debug your control to figure out the reason.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
I developed an ActiveX control to download another webpage and parse it to
obtain data from the web server. It works on Windows Server 2000 + IIS 5.0,
but does not on Windows Server 2003.

Can anybody help me to point the reason out? I really wish it can work on
IIS6.0. Thank you!


Zhaohui





AddThis Social Bookmark Button