Author: aliwajdan | Posted on: 12/3/2009 7:45:56 PM | Views : 265

Hi All
I have a problem working with httpwebrequest. I am posting some variables to a url. it works fine. But i when i post a chunk of xml as a form variable it does not work.
The same xml  inside a simple html form works fine.
Can any body tell me how can i fix this issue
The code i am using is :
private string PerformRequest(string method, string url, string data) { try { string user = ConfigurationManager.AppSettings["Username"]; string password = ConfigurationManager.AppSettings["Password"]; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.ContentType = "application/x-www-form-urlencoded"; request.UserAgent = "Callture Web"; request.Method = method; request.ContentLength = data.Length; ...

Go to the complete details ...