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
4 answers

Callback not executing from jQuery post

I'm having problems executing the call back function. $.post("/" + contentId + "/postComment", { "postComment": "" }, function(data) { alert('call back'); }); This post does take place. The alert is not called, however. This post results in…
jacekn
  • 1,521
  • 5
  • 29
  • 50
7
votes
1 answer

Django - request POST

Shall I use (and why?): if request.POST or: if request.method == 'POST' Is there any differences except syntax?
Mateusz Jagiełło
  • 6,854
  • 12
  • 40
  • 46
7
votes
2 answers

PHP $_REQUEST Variable

I have a question regarding the $_REQUEST global variable in php. When you have a get and a post submitted with the same variable name does php assign priority to either of them? Ie. if I have $_POST['var'] as well as $_GET['var'] submitted to a…
nobody
  • 7,803
  • 11
  • 56
  • 91
7
votes
3 answers

telnet send a http request

I am using telnet to send a http request , like this: telnet> open 192.168.4.135 8087 Trying 192.168.4.135... Connected to 192.168.4.135. Escape character is '^]'. POST /rpc/…
Fei Xue
  • 1,995
  • 5
  • 19
  • 29
7
votes
1 answer

dataStream.Length and .Position threw an exception of type 'System.NotSupportedException'

I am trying to post some data from asp.net to webservice using http post. While doing that I am getting the enclosed error. I have checked many post but nothing helps me really. Any help onto this will greatly appreciated. Length =…
NewGirlInCalgary
  • 71
  • 1
  • 3
  • 11
7
votes
4 answers

jQuery ajax function returns an error

to be honest, I'm a total beginner with jQuery and now I'm stuck. I want to send data from my HTML form to a php, it adds the data to a database and returns some value that I'd like to display on my original HTML. Here's my code: $.ajax({ type:…
nxu
  • 2,202
  • 1
  • 22
  • 34
7
votes
5 answers

How to get an HTTP POST request body as a Java String at the server side?

The getRequestBody method of the HttpExchange object returns an InputStream. There is still much work for correctly read the "Body". Is it a Java library + object + method that goes one more step ahead and returns the body (at the server side) as a…
Joshua
  • 151
  • 1
  • 1
  • 9
6
votes
5 answers

Consuming a web service using POST instead of the going the usual WSDL route

This is how I have currently managed to consume a particular Microsoft web service. Notice that it is located on an HTTPS server and that it requires a username, a password, and a .cer file to be installed in the operating system's "root certificate…
Enchilada
  • 3,859
  • 1
  • 36
  • 69
6
votes
4 answers

How can I send POST data and navigate with JQuery?

On my blog I have a lot of
 blocks containing code snippets.
What I want to do is add a .click() handler to all the 
 elements on the page which will send its content to another page - let's call it viewcode.php - via POST.
I know how to…
Marty
  • 39,033
  • 19
  • 93
  • 162
6
votes
4 answers

Unset all $_POST variables so that I don't get alert box upon redirect

After I submit a form I have 2 $_POST variables. In the landing page I want to turn them into $_SESSION variables and unset the $_POST ones so that the user won't get the alert of the browser to send their data again. This is my (not working) code: …
Elaine Marley
  • 2,143
  • 6
  • 50
  • 86
6
votes
1 answer

POST file upload using URLRequest

I have a quick question regarding POST file uploads in ActionScript 3. I am trying to upload a ByteArray from memory via POST to a server. I'm using the URLRequest class to send the data, and URLLoader because I want to monitor the progress. The…
Tristan Shelton
  • 327
  • 1
  • 3
  • 15
6
votes
2 answers

Escaping PHP GET and POST values

Possible Duplicate: The ultimate clean/secure function I was informed in another thread that this bit of code was pretty useless: function getPost($s) { if (array_key_exists($s, $_POST)) return…
jribeiro
  • 3,387
  • 8
  • 43
  • 70
6
votes
3 answers

Google Translate V2 cannot hanlde large text translations from C#

I've implemented C# code using the Google Translation V2 api with the GET Method. It successfully translates small texts but when increasing the text length and it takes 1,800 characters long ( including URI parameters ) I'm getting the "URI too…
G21
  • 1,297
  • 2
  • 18
  • 39
6
votes
2 answers

Progress bar with PHP & Ajax

I am working on progress bar which updates progress using ajax requests and session variables. When my program performs time consuming operation such as sending many emails etc. it just set proper session variable (which contains progress value).…
pawelo
  • 1,405
  • 4
  • 15
  • 30
6
votes
2 answers

Filter posts in a query if they have only one certain tag

Querying wordpress posts according to their tags can look like this (if I pieced it together correctly - I removed irrelevant parts from the query): SELECT wposts.ID AS ID, wposts.post_title, wposts.post_status, wposts.post_name, tag_terms.term_id…
reggie
  • 3,523
  • 14
  • 62
  • 97
1 2 3
99
100