tagged [http]

How to set up a squid Proxy with basic username and password authentication?

How to set up a squid Proxy with basic username and password authentication? I currently I use ip in acl, and I want to use username and password to do this.

16 Jan at 22:26

How to programmatically send a 404 response with Express/Node?

How to programmatically send a 404 response with Express/Node? I want to simulate a 404 error on my Express/Node server. How can I do that?

How to encode custom HTTP headers in C#

How to encode custom HTTP headers in C# Is there a class similar to HttpUtility to encode the content of a custom header? Ideally I would like to keep the content readable.

4 May at 21:25

How do I send a file in Android from a mobile device to server using http?

How do I send a file in Android from a mobile device to server using http? In android, how do I send a file(data) from a mobile device to server using http.

19 Apr at 08:47

How to make a HTTP PUT request?

How to make a HTTP PUT request? What is the best way to compose a rest PUT request in C#? The request has to also send an object not present in the URI.

9 Apr at 05:3

Are there any constants for the default HTTP headers?

Are there any constants for the default HTTP headers? Has Microsoft created a class full of constants for the standard HTTP header names or will I have to write my own?

15 Jul at 23:47

How to send an HTTP request using Telnet

How to send an HTTP request using Telnet How to get a web page's content using [Telnet](https://en.wikipedia.org/wiki/Telnet)? For example, the content of `https://stackoverflow.com/questions`.

12 Mar at 18:37

HTTP status code 0 - Error Domain=NSURLErrorDomain?

HTTP status code 0 - Error Domain=NSURLErrorDomain? I am working on an iOS project. In this application, I am downloading images from the server. While downloading images I am getting [Request Timeout...

Response Content type as CSV

Response Content type as CSV I need to send a CSV file in HTTP response. How can I set the output response as CSV format? This is not working:

13 Jun at 19:46

Are HTTP cookies port specific?

Are HTTP cookies port specific? I have two HTTP services running on one machine. I just want to know if they share their cookies or whether the browser distinguishes between the two server sockets.

23 Oct at 08:55

How can I add a custom HTTP header to ajax request with js or jQuery?

How can I add a custom HTTP header to ajax request with js or jQuery? Does anyone know how to add or create a custom HTTP header using JavaScript or jQuery?

Add custom header in HttpWebRequest

Add custom header in HttpWebRequest I need to add some custom headers to the `HttpWebRequest` object. How can I add Custom Header to `HttpWebRequest` object in Windows Phone 7.

Request Web Page in c# spoofing the Host

Request Web Page in c# spoofing the Host I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too. I have tried this using Htt...

3 May at 23:48

Why won't my PHP app send a 404 error?

Why won't my PHP app send a 404 error? Why wont this work? I get a blank page.

11 Jan at 23:29

Show image using file_get_contents

Show image using file_get_contents how can I display an image retrieved using file_get_contents in php? Do i need to modify the headers and just echo it or something? Thanks!

26 Nov at 15:48

HTTP Request in Android with Kotlin

HTTP Request in Android with Kotlin I want to do a login validation using POST method and to get some information using GET method. I've URL, server Username and Password already of my previous projec...

27 Jul at 14:46

How to create a HTTP server in Android?

How to create a HTTP server in Android? I would like to create a simple HTTP server in Android for serving some content to a client. Any advice on how to build the server or use any existing library?

21 May at 14:48

ServiceStack and SSL (HTTP 405 Method Not Allowed)

ServiceStack and SSL (HTTP 405 Method Not Allowed) My service works on http, however when i try enabling https on IIS I get the following error: HTTP 405 Method Not Allowed. WebDAV module is disabled.

Is there a way to follow redirects with command line cURL?

Is there a way to follow redirects with command line cURL? I know that in a php script: will follow redirects. Is there a way to follow redirects with command line cURL?

31 Aug at 20:37

What is the proper REST response code for a valid request but an empty data?

What is the proper REST response code for a valid request but an empty data? For example you run a GET request for `users/9` but there is no user with id #9. Which is the best response code? - - - - -

15 Jun at 16:8

How to prevent HttpClient from sending the Connection header

How to prevent HttpClient from sending the Connection header HttpClient includes this as 'Keep-Alive' by default. I've been able to set it to 'Close' using `httpClient.DefaultRequestHeaders.Connection...

21 Nov at 11:57

What's the "Content-Length" field in HTTP header?

What's the "Content-Length" field in HTTP header? What does it mean? 1. Byte count of encoded content string with encoding specified in header. 2. Character count of content string. Especially in case...

12 May at 10:34

PHP: How to send HTTP response code?

PHP: How to send HTTP response code? I have a PHP script that needs to make responses with HTTP response codes (status-codes), like HTTP 200 OK, or some 4XX or 5XX code. How can I do this in PHP?

25 Dec at 12:53

How do I use the Simple HTTP client in Android?

How do I use the Simple HTTP client in Android? How do I use the `AndroidHttpClient` as an HTTP client to connect to a remote server? I have not been able to find good examples in the documentation no...

10 Apr at 21:20

PATCH Async requests with Windows.Web.Http.HttpClient class

PATCH Async requests with Windows.Web.Http.HttpClient class I need to do a `PATCH` request with the `Windows.Web.Http.HttpClient` class and there is no official documentation on how to do it. How can ...

7 Nov at 09:26