useUnsafeHeaderParsing

F

Figmo

OK, I give up. 4 hours of searching the web and I can't find any info
on this.

I have a C# app that issues an HttpWebRequest against a server that
does not follow the standard regarding CRLF in it's headers. It's
not my server. I have no control over it. So I need to add
"useUnsafeHeaderParsing" to the app.config file - which fixes my
problem fine on the desktop environment.

The problem is, I also have a mobile version of my app. And the
compact framework environment does not allow me to add an app.config
file to this project.

Some of my research yielded a way to programatically set this value
using
System.Net.Configuration.HttpWebRequestElement.UseUnsafeHeaderParsing.
But it appears that compact framework does not support the
System.Net.Configuration namespace.

Can anybody tell me the correct way to enable unsafe header parsing
from a Windows Mobile C# app using compact framework? This is the
last hurdle I have to complete this project.

-Figmo
 

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