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

Upload and POST file to PHP page with Java

I need a way to upload a file and POST it into php page... My php page is:
Albe
7
votes
8 answers

So why should we use POST instead of GET for posting data?

Possible Duplicates: How should I choose between GET and POST methods in HTML forms? When do you use POST and when do you use GET? Obviously, you should. But apart from doing so to fulfil the HTTP protocol, are there any reasons to do so? Less…
cwap
  • 11,087
  • 8
  • 47
  • 61
7
votes
3 answers

executing javascript after a form finishes submitting

I am trying to submit some files to my database with a form. The form has a target of a hidden iframe. When it finishes loading, i was wanting to show a message. $("form#formPost").submit(); customFunction(); This example seems to not finish…
Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
7
votes
1 answer

Sending cookie with http post android

Hello guys I'm trying to send a cookie with http post in android here's my code webUrl = "XXXXXX"; webView = (WebView) findViewById(R.id.webview); try { CookieStore cookieStore = new BasicCookieStore(); …
Niko Adrianus Yuwono
  • 11,012
  • 8
  • 42
  • 64
7
votes
2 answers

Get a JSON as POST parameter

I have a ruby application and I need to receive a JSON from a client. Receiving a JSON is just like receiving a string? I just have to do something like: information = params[:json_data] data_parsed = JSON.parse(information) That's all or I have to…
Andres
  • 11,439
  • 12
  • 48
  • 87
7
votes
2 answers

Should a POST request render HTML or redirect?

Should a POST request render HTML or redirect? I hate it when your on a page and refresh and get the browser telling you, you're going to post data again.
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
7
votes
4 answers

Append JSON data to POST request

I have an AJAX form that submits correctly and that sends a complete model into the controller. What I want is to add a JSON to be sent with the Request. I have managed to intercept the POST like this: $(document).ready(function() { …
Adrian Marinica
  • 2,191
  • 5
  • 29
  • 53
7
votes
2 answers

Posting ByteArray from Knockout.js to a Web Service

I'm very new to KnockoutJS, and I dig it so far, but try as I might I couldn't find this info anywhere so I am hoping the community can help! In my View I have the following data-binding on a file input:
INNVTV
  • 3,155
  • 7
  • 37
  • 71
7
votes
2 answers

Parse xml from httppost response

During the execution of a http POST i store the response as a String response. HttpResponse httpresponse = httpclient.execute(httppost); HttpEntity resEntity = httpresponse.getEntity(); response = EntityUtils.toString(resEntity); If I print…
Ted
  • 127
  • 1
  • 2
  • 9
7
votes
5 answers

How to upload multiple files with AsyncHttpClient Android

I know I can upload single file from AsyncHttpClient http://loopj.com/android-async-http/ File myFile = new File("/path/to/file.png"); RequestParams params = new RequestParams(); try { params.put("profile_picture", myFile); }…
Yogesh Maheshwari
  • 1,324
  • 2
  • 16
  • 37
7
votes
4 answers

remove new line when sending request to server via Ajax Post with JQuery

I'm trying to use Ajax with JQuery, what I want to do is just send multiline textbox value to php with Ajax. I'm using that code, it sends txtAnswer value to php, unfortunately, it removes new lines (\n) from data. How can I solve this problem...…
sezgin
7
votes
4 answers

How do I POST JSON data object to server in iOS5?

I want to send a new object created on iOS to a receiving server with a POST method using JSON data type. From what I know about receiving data from the server in iOS, is that all JSON handling was simplified by Apple with the introduction of iOS 5.…
CGee
  • 1,650
  • 5
  • 20
  • 31
7
votes
2 answers

Is it possible to get all post variables in ExpressionEngine, like you could in CodeIgniter?

In a controller in CI you could get all post variables by doing something like this: $data = $this->input->post(); In EE (built off of CI by the same people) the analogous syntax would be: $data = $this->EE->input->post(); The only issue is that…
Mike_K
  • 9,010
  • 5
  • 20
  • 27
7
votes
1 answer

Curl multiple data in one POST command

Can anyone tell me if I can (in the command line) issue a POST command that contains a file and other parameters? I am trying to do something like: curl -X POST -F "key=myKey&file=@myfile.txt" http://localhost:8080/myRestService/ I am really new…
Rami
  • 8,044
  • 18
  • 66
  • 108
7
votes
3 answers

OpenGraph: custom properties not showing in post

I've create a Custom Object/Action/Aggregations for my app. https://graph.facebook.com/10151038251679973 All is working fine but now I wanted to add custom properties for my object. I've successfully added two properties: when and facility. The…
Mangiucugna
  • 1,732
  • 1
  • 14
  • 23
1 2 3
99
100