M
Mikael Svenson
Is there any way I can get the HttpWebRequest object to accept headers
with only \n in them?
When I go towards a particular url I get a ProtocolViolation error when
the headers in the received data only has \n to separate the fields.
If I make me a proxy and intercept the packets and change the \n to \r\n
it works just fine.
It seems to me that it's a bit strict to assume \r\n on http headers.
The same code works fine under Mono, so guess the Unix guys are a bit
more "forgiving" on these issues since \n is more unix like.
It's a bit hackish in my opinion to implement a proxy in order to get
this to work.
If anyone want the example url feel free to contact me.
-m
with only \n in them?
When I go towards a particular url I get a ProtocolViolation error when
the headers in the received data only has \n to separate the fields.
If I make me a proxy and intercept the packets and change the \n to \r\n
it works just fine.
It seems to me that it's a bit strict to assume \r\n on http headers.
The same code works fine under Mono, so guess the Unix guys are a bit
more "forgiving" on these issues since \n is more unix like.
It's a bit hackish in my opinion to implement a proxy in order to get
this to work.
If anyone want the example url feel free to contact me.
-m