tagged [http]

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?

20 Jul at 20:48

What is the difference between POST and GET?

What is the difference between POST and GET? I've only recently been getting involved with PHP/AJAX/jQuery and it seems to me that an important part of these technologies is that of `POST` and `GET`. ...

23 Jun at 22:59

Difference between HttpModule and HttpClientModule

Difference between HttpModule and HttpClientModule Which one to use to build a mock web service to test the Angular 4 app?

System.Net.WebException HTTP status code

System.Net.WebException HTTP status code Is there an easy way to get the HTTP status code from a `System.Net.WebException`?

6 Nov at 00:26

Set a cookie to HttpOnly via Javascript

Set a cookie to HttpOnly via Javascript I have a cookie that is NOT `HttpOnly` Can I set this cookie to `HttpOnly` via JavaScript?

22 Oct at 15:32

What's the difference of $host and $http_host in Nginx

What's the difference of $host and $http_host in Nginx In Nginx, what's the difference between variables `$host` and `$http_host`.

14 Mar at 16:25

Send file using POST from a Python script

Send file using POST from a Python script Is there a way to send a file using POST from a Python script?

27 Apr at 08:28

Does HTTP use UDP?

Does HTTP use UDP? This might be a silly question: - > If one is streaming MP3 or video using HTTP, does it internally use UDP for transport?

2 Jan at 16:21

How do I read any request header in PHP

How do I read any request header in PHP How should I read any header in PHP? For example the custom header: `X-Requested-With`.

6 Feb at 08:50

How to send HTTP request in Java?

How to send HTTP request in Java? In Java, How to compose an HTTP request message and send it to an HTTP web server?

26 Nov at 14:40

HttpWebRequest: how to identify as a browser?

HttpWebRequest: how to identify as a browser? The question is how to construct `HttpWebRequest` so queried server will think it comes from a browser?

8 Oct at 10:0

Operating System from User-Agent HTTP Header

Operating System from User-Agent HTTP Header Is there a good, up-to-date listing anywhere that maps User-Agent HTTP Header strings --> operating systems?

1 May at 08:51

What does enctype='multipart/form-data' mean?

What does enctype='multipart/form-data' mean? What does `enctype='multipart/form-data'` mean in an HTML form and when should we use it?

How is an HTTP POST request made in node.js?

How is an HTTP POST request made in node.js? How can I make an outbound HTTP POST request, with data, in node.js?

5 Mar at 02:35

Accessing post variables using Java Servlets

Accessing post variables using Java Servlets What is the Java equivalent of PHP's `$_POST`? After searching the web for an hour, I'm still nowhere closer.

25 Jul at 13:10

Is header('Content-Type:text/plain'); necessary at all?

Is header('Content-Type:text/plain'); necessary at all? I didn't see any difference with or without this head information yet.

What is token-based authentication?

What is token-based authentication? I want to understand what token-based authentication means. I searched the internet but couldn't find anything understandable.

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?

Android : Capturing HTTP Requests with non-rooted android device

Android : Capturing HTTP Requests with non-rooted android device I have an android application which uses a third party jar in it. Http request is sent from third party jar to server when application ...

16 Jul at 19:4

ServiceStack Customize HTTP Responses ADD message and errorCode

ServiceStack Customize HTTP Responses ADD message and errorCode I'm trying to Add a with an HTTP error response for my web services. I expect something like: > The remote server returned an error: (40...

How do I convert a date to a HTTP-formatted date in .Net / C#

How do I convert a date to a HTTP-formatted date in .Net / C# How does one convert a .Net DateTime into a valid HTTP-formatted date string?

17 Sep at 07:59

The type or namespace name 'HttpGet' could not be found when add 'System.Web.Http' namespace

The type or namespace name 'HttpGet' could not be found when add 'System.Web.Http' namespace I have one issue in MVC . Currently I am working in MVC and the version is MVC4 . And I have 2 ActionResult...

11 Oct at 08:24

HTTP response code for POST when resource already exists

HTTP response code for POST when resource already exists I'm building a server that allows clients to store objects. Those objects are fully constructed at client side, complete with object IDs that a...

24 Mar at 17:47

Listen to HTTP requests

Listen to HTTP requests I have a C# form application which I want to have listening for incoming HTTP requests from other computers. How would I go about doing this?

18 Jul at 22:17

How can I send an HTTP POST request to a server from Excel using VBA?

How can I send an HTTP POST request to a server from Excel using VBA? What VBA code is required to perform an HTTP POST from an Excel spreadsheet?

5 Jul at 20:30

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