473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

HTTP Protocol Violation

I had the trouble a long time, and hope some experts can really help me.

I used HttpWebRequest/HttpWebResponse to get the content of an URL. It
throws "HTTP Protocol Violation". Even I set useUnsafeHeaderParsing =
"true" in configuration file, the problem remain. The content shows well in
IE. (My content-type is text/plain)

I contacted with the device provider. They told me that HTTP return does not
have HTTP header in order to keep backward compatibility.
My question is:
- Do we have an alternative way to get content of the URL other than
Vulnerable Microsoft HttpWebRequest/HttpWebResponse?
- The problem had been here for a long time, why Microsoft doesn’t fix it?
(Even it is not standard HTTP, but you can display in IE???)
- Any persion overwrite MS BeginGetResponse/EndGetResponse event?

Thanks

Feb 20 '06 #1
1 1688
Thus wrote Qingdong Z.,
I had the trouble a long time, and hope some experts can really help
me.

I used HttpWebRequest/HttpWebResponse to get the content of an URL. It
throws "HTTP Protocol Violation". Even I set useUnsafeHeaderParsing =
"true" in configuration file, the problem remain. The content shows
well in IE. (My content-type is text/plain)
IE doesn't use System.Net.
I contacted with the device provider. They told me that HTTP return
does not have HTTP header in order to keep backward compatibility.
With what? More broken HTTP implementations? Any applicaton level firewall
might simply reject this stuff if configured to do so.
My question is:
- Do we have an alternative way to get content of the URL other than
Vulnerable Microsoft HttpWebRequest/HttpWebResponse?
Roll your own HTTP implementation based on System.Net.Sockets. Or try another
HTTP implementation like Indy.
- The problem had been here for a long time, why Microsoft doesn’t fix
it?


There's nothing to fix. Why support broken stuff?

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Feb 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Henrik | last post by:
Hi, I am trying to read some industrial webservers using the HTTP/CGI webequest like this: wrs = (HttpWebRequest)WebRequest.Create(HTTP/CGI-string); mwst = (HttpWebResponse wrs.GetResponse();...
0
by: Helen | last post by:
Hi, I am trying to use a .Net WebClient object to read data from a url, but I am getting the following error: System.Net.HttpWebRequest.CheckFinalStatus()...
7
by: Tom | last post by:
Hello all: I have a method that does a POST to a secured website using HttpWebRequest. It worked when logging in the site, but it failed with an HTTP prococol violation error when it is used to...
1
by: Khadim | last post by:
I m using HTTWebResponse which is running smoothly on my system which is behing a proxy server. When I run the application with Live IP it gives "HTTP Protocol violation error" I can't use...
3
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.