I need to do a programmatically originated post using WebRequest or WebClient (doesnt really matter)
When I try to a header into any of the instanciated object,ÃÂ i got the error:
This header must be modified using the appropriate property problem
I have read a couple posts by Microsoft's VS2005/2008 developers. They claim to fix the issue caused when using some restricted headers with the WebRequest class which throw the "This header must be modified using the appropriate property" error :
1- use WebClient instead of webrequest... but webclient still fires that exception if resricted headers are used.
2- dotnet 3.5 with VS2008 should have a newÃÂ method for WebRequest called: AddWithoutValidate() which --according to MS-- allows the addition of restricted header type to WebRequest.... However that method does not exists inÃÂ VS 2008.
Any ideas or solution for overcoming this problem ??
View Complete Post