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
7
votes
3 answers

How to load Wordpress Post with Ajax onclick

I have spent hours reading and trying tutorials. I cant seem to find a solution that works and I know it should be pretty easy but I struggle with AJAX. :( I want to load Post content from a link in a div. Below is what I have. Can someone please…
user2168388
  • 216
  • 1
  • 2
  • 8
7
votes
2 answers

Sending HTTP POST request in iOS with JSON

So I'm currently using Facebook to login to my iOS app, and the server administrator recently added security authentication by requiring a Facebook access token along with making all connections go via https. Here's the code I've tried running, but…
Julian Coltea
  • 3,599
  • 10
  • 26
  • 32
7
votes
4 answers

Difference between GET and POST methods?

I'm new in this forum and I'm learning PHP from this night. I want to send a form but I do not know the difference between:
and Anyone could help me please ? Thanks.
Johny G
  • 79
  • 1
  • 1
  • 3
7
votes
4 answers

QNetworkAccessManager: post http multipart from serial QIODevice

I'm trying to use QNetworkAccessManager to upload http multiparts to a dedicated server. The multipart consists of a JSON part describing the data being uploaded. The data is read from a serial QIODevice, which encrypts the data. This is the code…
matejk
  • 798
  • 1
  • 14
  • 27
7
votes
3 answers

Send file using POST from a Python script

This is an almost-duplicate of Send file using POST from a Python script, but I'd like to add a caveat: I need something that properly handles the encoding of fields and attached files. The solutions I've been able to find blow up when you throw…
zellyn
  • 1,393
  • 1
  • 11
  • 16
7
votes
4 answers

Not able to display XML in Wordpress post

If you want to display an XML fragment in a WordPress post - how do you do that? Suppose you want to display this: whatever whatever Using the [sourcecode language="xml"] does not help, as it…
Jasper
  • 8,440
  • 31
  • 92
  • 133
7
votes
6 answers

Laravel with Nginx parameters are empty

I just set up Nginx, and I'm trying to use it to host a Laravel app, but I ran into 2 problems. For GET method, I always get an extra parameter in my inputs. Using PostMan (Chrome) to do my testings, I set the destination URL and my desired…
Alex
  • 7,538
  • 23
  • 84
  • 152
7
votes
2 answers

How do i call Rest Webserivce with a post method and send xml data in C#

What i am trying to do here is make post request to Rest webserivce with xml data. this is what i have right now but i am not sure how to pass my xml data XElement xml = new XElement("MatchedOptions", from m in…
devforall
  • 7,217
  • 12
  • 36
  • 42
7
votes
2 answers

Continually receiving 400 (Bad Request) on jquery ajax post to MVC controller

My ajax call looks like this $.ajax({ //actually approve or reject the promotion url: url, type: "POST", data: '{'+data.PromotionId+','+data.UserId+','+data.ReasonText+'}', dataType:…
Pseudonym
  • 2,052
  • 2
  • 17
  • 38
7
votes
1 answer

How to set post_max_size on apache server with htaccess (getting internal server error)

I am trying to increase the maximum post size limit on my server. Here is the .htaccess file: php_value upload_max_filesize 20M php_value post_max_size 20M php_value max_execution_time 200 php_value max_input_time 200 However it does not seem to…
YemSalat
  • 19,986
  • 13
  • 44
  • 51
7
votes
2 answers

Policy and Signature issues for a rails post form to s3 upload

I'm attempting to follow this "how-to" (form POST to S3 bucket) and appear to be failing on my policy and signature. I'm not so sure my policy and signature are wrong? But I do know I'm having an issue evaluating the methods I've created in my…
twinturbotom
  • 1,504
  • 1
  • 21
  • 34
7
votes
5 answers

Swagger-ui only sending OPTIONS not POST http method despite working API

I am using Swagger-UI to browse my own API, built with grape and automatically documented with grape-swagger. I've googled and tried every suggestion I can find, but I cannot get POST to work. Here's my headers: header…
Richard Jordan
  • 8,066
  • 3
  • 39
  • 45
7
votes
2 answers

Passing array to PHP using POST from iOS

So I've looked through an endless number of like problems but none of them answered what I was looking for or answered it in a complete manner so hopefully you all can help me out. I need to pass an array of restaurantID's from iOS to a PHP file…
WiseOlMan
  • 926
  • 2
  • 11
  • 26
7
votes
2 answers

Rails accepting duplicate POST requests

I have a strange problem with my rails application. My application accept duplicate POST requests within one second This duplicate request, containing the same data, strangely able to bypass the uniqueness validation of my model. This results in…
Steven St
  • 483
  • 1
  • 8
  • 14
7
votes
5 answers

jQuery post parameter to load

How do I pass the values of txtname and tel as variables to the .load??? $(document).ready(function(){ $("#add").click(function(){ $("#result").load("add.php", {name: #txtname}); }); }); The html:

Name:

user155088