Questions tagged [post]

POST is one of the HTTP protocol methods; it is used when the client needs to send data to the server, such as when uploading a file, or submitting a completed form. The word post has several meanings, but this tag is specifically about HTTP POST requests.

POST is one of the HTTP protocol methods; it is used when the client needs to send data to the server as part of the request, such as when uploading a file or submitting a completed form.

In contrast to the GET request method where only a URL and headers are sent to the server, POST requests also include a message body. This allows for arbitrary length data of any type to be sent to the server. A header-field in the POST request usually indicates the message body's Internet media type.

Links

Related

, , , , , ,

40747 questions
6265
votes
42 answers

What is the difference between POST and PUT in HTTP?

Background Information Analysis: According to RFC 2616, § 9.5, POST is used to create a resource: The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by…
alex
  • 74,215
  • 9
  • 49
  • 57
1742
votes
32 answers

JavaScript post request like a form submit

I'm trying to direct a browser to a different page. If I wanted a GET request, I might say document.location.href = 'http://example.com/q=a'; But the resource I'm trying to access won't respond properly unless I use a POST request. If this were not…
Joseph Holsten
  • 20,672
  • 6
  • 25
  • 29
1716
votes
10 answers

How are parameters sent in an HTTP POST request?

In an HTTP GET request, parameters are sent as a query string: http://example.com/page?parameter=value&also=another In an HTTP POST request, the parameters are not sent along with the URI. Where are the values? In the request header? In the request…
Camilo Martin
  • 37,236
  • 20
  • 111
  • 154
1625
votes
7 answers

application/x-www-form-urlencoded or multipart/form-data?

In HTTP there are two ways to POST data: application/x-www-form-urlencoded and multipart/form-data. I understand that most browsers are only able to upload files if multipart/form-data is used. Is there any additional guidance when to use one of the…
max
  • 29,122
  • 12
  • 52
  • 79
1459
votes
17 answers

Send HTTP POST request in .NET

How can I make an HTTP POST request and send data in the body?
Hooch
  • 28,817
  • 29
  • 102
  • 161
1128
votes
24 answers

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

How can I make an outbound HTTP POST request, with data, in node.js?
Mark
  • 67,098
  • 47
  • 117
  • 162
1036
votes
19 answers

What's the difference between a POST and a PUT HTTP REQUEST?

They both seem to be sending data to the server inside the body, so what makes them different?
fuentesjr
  • 50,920
  • 27
  • 77
  • 81
909
votes
24 answers

How to access POST form fields in Express

Here is my simple form:
murvinlai
  • 48,919
  • 52
  • 129
  • 177
855
votes
26 answers

jQuery Ajax File Upload

Can I use the following jQuery code to perform file upload using POST method of an ajax request ? $.ajax({ type: "POST", timeout: 50000, url: url, data: dataString, success: function (data) { alert('success'); …
Willy
  • 9,681
  • 5
  • 26
  • 25
797
votes
18 answers

How do I send a POST request with PHP?

Actually I want to read the contents that come after the search query, when it is done. The problem is that the URL only accepts POST methods, and it does not take any action with GET method... I have to read all contents with the help of…
Fred Tanrikut
  • 9,951
  • 4
  • 17
  • 7
765
votes
9 answers

Are HTTPS headers encrypted?

When sending data over HTTPS, I know the content is encrypted, however I hear mixed answers about whether the headers are encrypted, or how much of the header is encrypted. How much of HTTPS headers are encrypted? Including GET/POST request URLs,…
Dan Herbert
  • 99,428
  • 48
  • 189
  • 219
756
votes
17 answers

jQuery Ajax POST example with PHP

I am trying to send data from a form to a database. Here is the form I am using:
Thew
  • 15,789
  • 18
  • 59
  • 100
718
votes
9 answers

Getting only response header from HTTP POST using cURL

One can request only the headers using HTTP HEAD, as option -I in curl(1). $ curl -I / Lengthy HTML response bodies are a pain to get in command-line, so I'd like to get only the header as feedback for my POST requests. However, HEAD and POST are…
Jonathan Allard
  • 18,429
  • 11
  • 54
  • 75
688
votes
13 answers

Send POST data using XMLHttpRequest

I'd like to send some data using an XMLHttpRequest in JavaScript. Say I have the following form in HTML:
Jack Greenhill
  • 10,240
  • 12
  • 38
  • 70
622
votes
21 answers

HTTP test server accepting GET/POST requests

I need a live test server that accepts my requests for basic information via HTTP GET and also allows me to POST (even if it's really not doing anything). This is entirely for test purposes. A good example is here. It easily accepts GET requests,…
John Twigg
  • 7,171
  • 4
  • 20
  • 20
1
2 3
99 100