Questions tagged [httpwebresponse]

Provides an HTTP-specific implementation of the WebResponse class

The HttpWebRequest class provides support for the properties and methods defined in the WebRequest class and for additional properties and methods that enable the user to interact directly with servers using HTTP.

1062 questions
-2
votes
1 answer

Reduce server response time - apache2 on debian 7

I have pretty well-optimized website, PageSpeed Insights tool shows good results, but Google keeps saying reduce server response time which is 0.46 seconds. And it must not be greater than 200ms. I have tried to delete all my htaccess content, then…
cooher
  • 1
  • 3
-2
votes
1 answer

Download thread over Http directly exits from byte-reading loop

I have a project to download using multithread over Http. It downloads the content partially. For some URLs and low download speed, some of the partial download threads waits too much on while loops' without getting data and after a few times the…
Ali Tor
  • 2,772
  • 2
  • 27
  • 58
-2
votes
2 answers

FileStream works and MemoryStream fails when sending files

I am attempting to send files to a request by writing them to the response object. I currently have two ways. The first way (using FileStream) works and the second way(using MemoryStream) fails. I would like to know why the second way fails as I do…
Rajeshwar
  • 11,179
  • 26
  • 86
  • 158
-2
votes
1 answer

C# / .net GET unexpected behaviour

Doing a simple GET from C# var webClient = new WebClient(); webClient.Headers.Add("Accept", "*.*"); webClient.Headers.Add("Accept-Encoding", "gzip, deflate"); webClient.Headers.Add("User-Agent", "runscope/0.1"); var response =…
-2
votes
1 answer

Which operation cannot be performed after the request has been submitted?

I'm successfully passing data between a handheld device (Compacted Framework/Windows CE) and a modern (not "modern" as in Windows 8, but as in 21st Century) server app (Web API). However, after the (successful) passing of data, the client fails with…
-2
votes
1 answer

Object moved to here in response of Jmeter request

I am new Jmeter, I have recorded a JMeter script. When I am playing login request for my website in response I am getting "Object Moved to here" instead of getting expected result. I have created Cookie Manager & Cache Manager.
-2
votes
1 answer

Maintain authorization between HttpWebRequests

How do I keep authorization after logging in and send messages? Here is my code: for (var i = 0; i < Listchat.Length; i++) { string url = Listchat[i] + "/ajax/"; string par = "act=login&chat=" + "4952" + "&msg=" + log + "&pass=" + pass +…
user2812337
  • 29
  • 1
  • 6
-2
votes
4 answers

What is difference between Response.Redirect("http://url") and Response.Write("REDIRECT=http://url")?

I'm working on ASP.NET MVC3 with C#. What is difference between Response.Redirect("http://www.google.com"); and Response.Write("REDIRECT=http://www.google.com");?
Dharmik Bhandari
  • 1,702
  • 5
  • 29
  • 60
-3
votes
1 answer

Parsing a JSON response from an API in C#

I called REST API and was able to put the JSON response received back in a String using: string vResp = new StreamReader(response.GetResponseStream(), Encoding.Default).ReadToEnd(); Below is the result of vResp from Console.WriteLine { "Response"…
Jug B
  • 1
  • 1
-4
votes
1 answer

Contact a website and obtain the redirect url as String in c#

I noticed if you visit the url of your git repository, eg https://github.com/user/project/releases/latest you will automaticaly get redirected to the latest version https://github.com/user/project/releases/tag/1.3 Is there a possibility in c# to…
Julian Bechtold
  • 167
  • 1
  • 12
-5
votes
1 answer

C# Http Web Request failing to certain sites

I trying to connect to awesemo.com using c# http request but its http connection failing by showing the following error: Error1: IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote…
-6
votes
2 answers

Parse value from http web response stream

I have a httpwebresponse stream in this format as a…
1 2 3
70
71