Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Timeout on WebRequest

$
0
0

Hey,

I want to set a timeout in a httpwebrequest. The property "Timeout" seems to be ignored. Does anybody have an idea for a workaround?

My Code:

var Request = (HttpWebRequest)HttpWebRequest.Create(@"***URL***");
Request.Headers["Cache-Control"] = "no-cache";
Request.Headers["Pragma"] = "no-cache";
Request.BeginGetResponse(new AsyncCallback(BeginGetResponseCompleted), Request);

Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>