tagged [http]

C# - How to make a HTTP call

C# - How to make a HTTP call I wanted to make an HTTP call to a website. I just need to hit the URL and dont want to upload or download any data. What is the easiest and fastest way to do it. I tried ...

7 Oct at 14:9

How do I generate an http ETag in c#?

How do I generate an http ETag in c#? Given a file being returned as part of a http request. What is the correct method of creating an ETag for that file? [http://www.w3.org/Protocols/rfc2616/rfc2616-...

13 Oct at 05:13

What does vary:accept-encoding mean?

What does vary:accept-encoding mean? the google page speed addon informs me: I don't understand what this means. I've already compressed these files like so: ``` if (encodings.Contains("gzip") || enco...

21 Oct at 11:33

Making and receiving an HTTP request in C#

Making and receiving an HTTP request in C# I want to make my C# application to be able to send an http request and receive the answer at runtime an explanation from the website I want to request from ...

27 Oct at 14:19

Cannot seem to get rid of Compatibility View?

Cannot seem to get rid of Compatibility View? I am using the [Flot](http://code.google.com/p/flot/) plotting library. It seems to work fine in IE8 and IE9 but the problem comes when in IE9 Compatibili...

27 Oct at 20:53

Can't set HttpWebRequest timeout higher than 100 seconds when doing a POST?

Can't set HttpWebRequest timeout higher than 100 seconds when doing a POST? I am running into an issue where HttpWebRequest won't respect a timeout value higher than 100 seconds when doing a POST. How...

28 Oct at 18:19

How do I set headers using python's urllib?

How do I set headers using python's urllib? I am pretty new to python's urllib. What I need to do is set a custom header for the request being sent to the server. Specifically, I need to set the Conte...

28 Oct at 18:39

Using WebClient in C# is there a way to get the URL of a site after being redirected?

Using WebClient in C# is there a way to get the URL of a site after being redirected? Using the WebClient class I can get the title of a website easily enough: I want to s

15 Nov at 22:42

Handling Serialization Exceptions in ServiceStack

Handling Serialization Exceptions in ServiceStack I am using ServiceStack to create a service which accepts request from and HTML form (POSTed). One of the DTO properties is an Enum, and when the inpu...

18 Nov at 00:16

Server cannot set status after HTTP headers have been sent IIS7.5

Server cannot set status after HTTP headers have been sent IIS7.5 Sometimes I get exception in my production environment: > - - - - - - - - - [http://www.myulr.pl/logon](http://www.myulr.pl/logon)- - ...

18 Nov at 05:15

Mapping Header cookie string to CookieCollection and vice versa

Mapping Header cookie string to CookieCollection and vice versa Consider a web response with this header: this header would be mapped to `CookieCollection` in `.NET`. And also when we deal with a `Coo...

25 Nov at 13:17

Send POST with WebClient.DownloadString in C#

Send POST with WebClient.DownloadString in C# I know there are a lot of questions about sending HTTP POST requests with C#, but I'm looking for a method that uses `WebClient` rather than `HttpWebReque...

28 Nov at 00:51

Response.Redirect HTTP status code

Response.Redirect HTTP status code Why is it that ASP/ASP.NET Response.Redirect uses a HTTP-302 status code ("Moved Temporarily") even though in most cases a HTTP-301 status code ("Moved Permanently")...

7 Dec at 21:45

How do I prevent IIS7 from dropping my cookies?

How do I prevent IIS7 from dropping my cookies? I'm using Windows Vista x64 with SP1, and I'm developing an ASP.NET app with IIS7 as the web server. I've got a problem where my cookies aren't "stickin...

6 Jan at 15:16

Disable ServiceStack 304s?

Disable ServiceStack 304s? I have an IService that when jQuery.ajax requests it in IE, ServiceStack always returns a 304 and doesn't execute my service. I've tried ResponseFilters, switching to RestSe...

Node.js EACCES error when listening on most ports

Node.js EACCES error when listening on most ports I'm testing out an app (hopefully to run on heroku, but am having issues locally as well). It's giving me an EACCES error when it runs http.Server.lis...

6 Feb at 18:13

How to set a Header field on POST a form?

How to set a Header field on POST a form? How can I set a custom field in POST header on submit a form?

get client time zone from browser

get client time zone from browser Is there a reliable way to get a timezone from client browser? I saw the following links but I want a more robust solution. [Auto detect a time zone with JavaScript](...

1 Mar at 21:27

Recommended date format for REST GET API

Recommended date format for REST GET API What's the recommended timestamp format for a REST GET API like this: I think the actual date format should be ISO 8601 format, such as `YYYY-MM-DDThh:mm:ssZ` ...

6 Mar at 10:21

"Cannot GET /" with Connect on Node.js

"Cannot GET /" with Connect on Node.js I'm trying to start serving some static web pages using `connect` like this: So I added a simple `index.html` at the `/public` directory on the same directory

9 Mar at 00:52

Good low level http library for .Net

Good low level http library for .Net I'm looking for a library for .net, which would let me have full control over what gets sent via net. I'm going to use it for http experiments. I know of c#'s Http...

10 Mar at 22:16

Where can I find the default timeout settings for all browsers?

Where can I find the default timeout settings for all browsers? I'm looking for some kind of documentation that specifies how much time each browser (IE6/IE7/FF2/FF3, etc) will wait on a request befor...

23 Mar at 16:54

How to send cookies in a post request with the Python Requests library?

How to send cookies in a post request with the Python Requests library? I'm trying to use the [Requests](http://docs.python-requests.org/en/latest/user/quickstart/#cookies) library to send cookies wit...

Simple URL GET/POST function in Python

Simple URL GET/POST function in Python I can't seem to Google it, but I want a function that does this: Accept 3 arguments (or more, whatever): - - - Return me the results, and the response code. Is t...

9 Apr at 20:21

Why does HttpWebRequest throw an exception instead returning HttpStatusCode.NotFound?

Why does HttpWebRequest throw an exception instead returning HttpStatusCode.NotFound? I'm trying to verify the existence of a Url using HttpWebRequest. I found a few examples that do basically this: `...