Last post Dec 14, 2017 08:33 AM by Eric Du
Dec 13, 2017 05:08 PM|progy85|LINK
If I have like that:
this open in browser, but how can i use this in background? I need this request.. webrequest not working i got: error 500
Dec 14, 2017 08:33 AM|Eric Du|LINK
According to your description, as far as i know, this url is your local address, so i can not access it. I think you want to use webrequest in code behind, please check this tutorial:
Send webrequest with parameter in asp.net c#:
You could add the following code to catch exception error message:
HttpWebRequest req = WebRequest.Create(url) as HttpWebRequest;
WebResponse wr = req.GetResponse();
catch (WebException wex)
var pageContent = new StreamReader(wex.Response.GetResponseStream())
Then send the exception message to developer of the server.
If your server side is in local, please try debugger it in the server side.
About 500 error, this error usually is related to the server side, if request service in the local, please debug it.
Here is a tutorial about how to debug this error, please check: