Http protocol violation error

K

Khadim

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 'useUnsafeHeaderParsing' because it is not recognized by
framework without sp3.

I have urlencoded my data... its a simple get method with no complexity
(I think so)

Here is portion of my log file...please have a look at it. Any comments
on it are appreciated highly... thanks in advance

2/6/2006 4:55:02 PM
URI: http://patft.uspto.gov/netacgi/nph-Parser
--------------------------------------------------------------------
2/6/2006 4:55:02 PM
DATA Length: 11
--------------------------------------------------------------------
2/6/2006 4:55:02 PM
Creating uri
--------------------------------------------------------------------
2/6/2006 4:55:02 PM
CompleteData:
Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&u=/netahtml/srchnum.htm&r=1&f=G&l=50&s1=6666325.WKU.&OS=PN/6666325&RS=PN/6666325
--------------------------------------------------------------------
2/6/2006 4:55:02 PM
Creating Request
--------------------------------------------------------------------
2/6/2006 4:55:02 PM
Request Created
--------------------------------------------------------------------
2/6/2006 4:55:02 PM
Going to get response
--------------------------------------------------------------------
2/6/2006 4:55:10 PM
Error occuredSystem.Net.WebException: The underlying connection was
closed: The server committed an HTTP protocol violation.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult
asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at PIA.SiteGrabber.Site_Get(String uri, String[] data)
--------------------------------------------------------------------
 
V

Vadym Stetsyak

Hello, Khadim!

Except Get request are there any headers that you specify?

How exactly server violated HTTP protocol? ( this info can be obtain by analyzing traffic with the help of traffic sniffer or another proxy...)

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top