tagged [http]

HTTP POST Returns Error: 417 "Expectation Failed."

HTTP POST Returns Error: 417 "Expectation Failed." When I try to POST to a URL it results in the following exception: > The remote server returned an error: (417) Expectation Failed. Here's a sample ...

31 May at 16:44

How to post data in PHP using file_get_contents?

How to post data in PHP using file_get_contents? I'm using PHP's function `file_get_contents()` to fetch contents of a URL and then I process headers through the variable `$http_response_header`. Now ...

3 Nov at 10:46

How can I get the clients IP address from HTTP headers?

How can I get the clients IP address from HTTP headers? I understand it's a standard practice to look at both these variables. Of course they can easily be spoofed. I'm curious how often can you expec...

10 May at 16:3

RESTful HTTP DELETE method in .NET

RESTful HTTP DELETE method in .NET I am new to web services. I am dealing with testing APIs in my project. In the previous version the company used GET and POST methods but not PUT and DELETE methods....

5 Jul at 09:18

How to get host name with port from a http or https request

How to get host name with port from a http or https request I have two applications deployed in a JBoss container (same unix box). If I receive a request from app1, I need to send a corresponding requ...

How to return HTTP 429?

How to return HTTP 429? I'm implementing an API using WCF and the specification says to return HTTP 429 in certain circumstances. Normally I'd simply write: However the HttpStatusCode enum does not co...

28 Sep at 08:37

HTTP 1.0 vs 1.1

HTTP 1.0 vs 1.1 Could somebody give me a brief overview of the differences between HTTP 1.0 and HTTP 1.1? I've spent some time with both of the RFCs, but haven't been able to pull out a lot of differe...

20 Jun at 09:12

Possible to detect the *type of mobile device* via javascript or HTTP Headers?

Possible to detect the *type of mobile device* via javascript or HTTP Headers? I've got a request from a customer to automatically detect the type of mobile device (not the browser, the type. ex: Moto...

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...

How to get final URL after following HTTP redirections in pure PHP?

How to get final URL after following HTTP redirections in pure PHP? What I'd like to do is . Right now I have a URL (let's say [http://domain.test](http://domain.test)), and I use get_headers() to get...

26 Sep at 18:12

What is the maximum length of a URL in different browsers?

What is the maximum length of a URL in different browsers? - -

19 Feb at 17:46

HTTP 400 (bad request) for logical error, not malformed request syntax

HTTP 400 (bad request) for logical error, not malformed request syntax The [HTTP/1.1 specification (RFC 2616)](http://www.w3.org/Protocols/rfc2616/rfc2616.html) has the following to say on the meaning...

.NET: Simplest way to send POST with data and read response

.NET: Simplest way to send POST with data and read response To my surprise, I can't do anything nearly as simple as this, from what I can tell, in the .NET BCL: This hypothetical code above mak

25 Mar at 11:33

Basic HTTP authentication with Node and Express 4

Basic HTTP authentication with Node and Express 4 It looks like implementing basic HTTP authentication with Express v3 was trivial: Version 4 (I'm using 4.2) removed the `basicAuth` middleware, though...

How are cookies passed in the HTTP protocol?

How are cookies passed in the HTTP protocol? How are cookies passed in the HTTP protocol?

12 Aug at 11:27

Adding HTTP request header to WCF request

Adding HTTP request header to WCF request I have a WCF service consume by both AJAX and C# application, I need to send a parameter through the HTTP request header. On my AJAX I have added the followin...

12 Jul at 02:6

How can I use HTTP GET in PowerShell?

How can I use HTTP GET in PowerShell? > [Get $webclient.downloadstring to write to text file in Powershell](https://stackoverflow.com/questions/9365000/get-webclient-downloadstring-to-write-to-text-f...

15 Oct at 16:31

What is RESTful programming?

What is RESTful programming? What exactly is [RESTful programming](https://en.wikipedia.org/wiki/Representational_state_transfer)?

10 Jul at 23:19

HTTP: Generating ETag Header

HTTP: Generating ETag Header How do I generate an ETag HTTP header for a resource file?

How to retrieve a webpage with C#?

How to retrieve a webpage with C#? How to retrieve a webpage and diplay the html to the console with C# ?

28 Feb at 14:32

How to do a PUT request with cURL?

How to do a PUT request with cURL? How do I test a RESTful PUT (or DELETE) method using cURL?

2 Apr at 06:10

Why am I getting an OPTIONS request instead of a GET request?

Why am I getting an OPTIONS request instead of a GET request? it does an OPTIONS request to that URL, and then the callback is never called with anything. When it isn't cross domain, it works

What is the JavaScript equivalent of C# Server.URLEncode?

What is the JavaScript equivalent of C# Server.URLEncode? What is the JavaScript equivalent of C# Server.URLEncode?

29 Jun at 17:0

Are querystring parameters secure in HTTPS (HTTP + SSL)?

Are querystring parameters secure in HTTPS (HTTP + SSL)? Do querystring parameters get encrypted in HTTPS when sent with a request?

19 Jul at 13:4

C# HttpWebRequest command to get directory listing

C# HttpWebRequest command to get directory listing I need a short code snippet to get a directory listing from an HTTP server. Thanks

23 Sep at 23:8