i have a problem about timeout in http client windows phone, i already read on microsoft forum and know about default timeout was 100 seconds. is has a way to change default timeout? i already modify my coding but it's nothing, i want to change about 4 minutes and then get timeout reques. its a sample my codding
HttpClientHandler _handler = new HttpClientHandler();
_handler.CookieContainer = InfosysHttpClient.COOKIE_CONTAINER;
_handler.UseCookies = true;
//CancellationTokenSource cts = new CancellationTokenSource(new TimeSpan(0, 0,request.Timeout, 0, 300));
//var cts = new CancellationTokenSource();
HttpClient _client = new HttpClient(_handler);
//cts.CancelAfter(new TimeSpan(0, 0, request.Timeout, 0, 300));
//_client.Timeout = Thread.Sleep((TimeSpan.FromMinutes(2)));
//_client.Timeout = new TimeSpan(0, 0,request.Timeout, 0, 300);
try
{
HttpResponseMessage _result = await _client.PostAsync(request.Url, _content);
_resp.Message = await _result.Content.ReadAsStringAsync();
_resp.Status = _result.StatusCode.ToString();
}