jveupucsiyzijyeun
New Member
I'm coding up an app that requires HTTP-POST.The request is being sent from a web server to external web server via HTTPS.<BR>Currently I am only testing this via HTTP.<BR>When I leave out the Request.Method = "Post" from my code I receive the correct information back from test servers (both intranet and internet) When I include the Request.Method = "Post" I receive a timeout error. Any help would be greatly appreciated. A sample of the code is below<BR><BR>HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://mydomain.com.au/testpages/mytestpage.aspx?domName=myDomName&suffix=mySuffix");<BR>//OFFENDING LINES COMMENTED OUT<BR>//myRequest.Method = "Post";<BR>//myRequest.ContentType = "application/x-www-form-urlencoded";<BR>HttpWebResponse webResponse = (HttpWebResponse)myRequest.GetResponse();<BR>StreamReader myStreamReader = new StreamReader(webResponse.GetResponseStream(), Encoding.ASCII);<BR>try<BR> {<BR> string outPutString;<BR> outPutString = myStreamReader.ReadToEnd();<BR> lblPostRes.Text = outPutString;<BR> }<BR> catch<BR> {<BR> Response.Write("Failure to complete request");<BR> }<BR> myStreamReader.Close();<BR> }<BR>just guessing here but<BR><BR>You aren't POSTing anything. It is just a GET request is it not?<BR><BR>I assume GET is the default when nothjing specified