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 ...
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 ...
- Modified
- 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...
- Modified
- 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....
- Modified
- 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...
- Modified
- 17 Aug at 09:20
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...
- Modified
- 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...
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...
- Modified
- 1 May at 09:2
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...
- Modified
- 7 Jan at 08:1
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...
- Modified
- 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? - -
.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
- Modified
- 25 Mar at 11:33
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...
- Modified
- 24 Jan at 18:17
How are cookies passed in the HTTP protocol?
How are cookies passed in the HTTP protocol? How are cookies passed in the HTTP protocol?
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...
- Modified
- 12 May at 18:37
What is RESTful programming?
What is RESTful programming? What exactly is [RESTful programming](https://en.wikipedia.org/wiki/Representational_state_transfer)?
- Modified
- 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?
- Modified
- 17 Sep at 08:6
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...
- Modified
- 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...
- Modified
- 15 Oct at 16:31
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# ?
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?
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?
- Modified
- 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?
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
Is there a limit to the length of a GET request?
Is there a limit to the length of a GET request? Is there a limit to the length of a GET request?