G
Guest
Greetings;
When attempting to pull down a particular web page using HttpWebRequest, I
get a "HTTP Protocol Violation Error". I understand this is to do errors from
the web service, but need to pull the page anyways. I do not have access to
modify this page/web server. It is an embedded device. The
solution/workaround I keep finding is to insert the following into
application.exe.config file:
<configuration>
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true"/>
</settings>
</system.net>
</configuration>
This, however, has no effect for me. I still get the same error message. I
have tried using my code to pull down different pages, and it works fine. I
am sure my program is using the config file. Does anyone have any idea why
'useUnsafeHeaderParsing="true"' would not work for me, or is there any other
technique I can try? Here is a dump of the communication taking place:
GET /cgi-bin/config HTTP/1.1
User-Agent: Code Sample Web Client
Connection: Keep-Alive
Host: 10.103.130.112
<HTML><PRE>Application Version=6.72
ROM Version=5.85
Platform=WA22A
Ethernet MAC=00:10:40:03:34:cf
Radio 1 Type=Agere
Radio 1 MAC=00:02:2d:6e:05:a0
Secure Available=Yes
Fiber Available=No
FPGA Version=0.14
Software Type=Access Point Enterprise
DHCP Server=No
EAS=No
IONS=No
FlashCard=No
</PRE></HTML>
As ugly as it looks, that is the page i need to be able to pull. Also, I
have version 1.1 SP1 of the .NET framework. Any help would be GREATLY
appreciated!
Best Regards
When attempting to pull down a particular web page using HttpWebRequest, I
get a "HTTP Protocol Violation Error". I understand this is to do errors from
the web service, but need to pull the page anyways. I do not have access to
modify this page/web server. It is an embedded device. The
solution/workaround I keep finding is to insert the following into
application.exe.config file:
<configuration>
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true"/>
</settings>
</system.net>
</configuration>
This, however, has no effect for me. I still get the same error message. I
have tried using my code to pull down different pages, and it works fine. I
am sure my program is using the config file. Does anyone have any idea why
'useUnsafeHeaderParsing="true"' would not work for me, or is there any other
technique I can try? Here is a dump of the communication taking place:
GET /cgi-bin/config HTTP/1.1
User-Agent: Code Sample Web Client
Connection: Keep-Alive
Host: 10.103.130.112
<HTML><PRE>Application Version=6.72
ROM Version=5.85
Platform=WA22A
Ethernet MAC=00:10:40:03:34:cf
Radio 1 Type=Agere
Radio 1 MAC=00:02:2d:6e:05:a0
Secure Available=Yes
Fiber Available=No
FPGA Version=0.14
Software Type=Access Point Enterprise
DHCP Server=No
EAS=No
IONS=No
FlashCard=No
</PRE></HTML>
As ugly as it looks, that is the page i need to be able to pull. Also, I
have version 1.1 SP1 of the .NET framework. Any help would be GREATLY
appreciated!
Best Regards