Questions tagged [postdata]

Postdata is the data sent by an HTTP POST Request, which is one request type of the HTTP Specification. In contrast to the GET Request, it contains a message body which can contain any type of data, like Strings and Binary Data.

193 questions
76
votes
17 answers

How do I reload a page without a POSTDATA warning in Javascript?

I want to reload a page using: window.location.reload(true); But I receive the POSTDATA warning because the refresh function want to resend previous POST form data. How can I refresh my page without this warning? UPDATED: I have no control of the…
Ricibald
  • 9,369
  • 7
  • 47
  • 62
55
votes
2 answers

Android HTTPUrlConnection : how to set post data in http body?

I've already created my HTTPUrlConnection : String postData = "x=val1&y=val2"; URL url = new URL(strURL); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("POST"); conn.setRequestProperty("Content-Type",…
Rob
  • 15,732
  • 22
  • 69
  • 107
33
votes
8 answers

Easiest way to parse "querystring" formatted data

With the following code: string q = "userID=16555&gameID=60&score=4542.122&time=343114"; What would be the easiest way to parse the values, preferably without writing my own parser? I'm looking for something with the same functionality as…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
28
votes
2 answers

Variables in wget post data

I am working on a simple bash script to download images from the website Tumblr. The idea is to use read to get login info from the user, and wget --post-data to log in, and this is what I have: read -p "Tumblr login email: " EMAIL read -p "Tumblr…
user1111098
  • 287
  • 1
  • 3
  • 4
12
votes
1 answer

Button post HTML

I need to use a button without using a form. How do I make it send post data to the browser? I am using:
user434885
  • 1,988
  • 6
  • 29
  • 51
10
votes
3 answers

curl command equivalent in ruby

I have a curl command that works well, but I need to automate this in a ruby script, curl cmd: curl -u usrname:pwd -X POST --data "del=false&val=100" http://localhost:1111/sample/path I wrote the following code: uri = URI::HTTPS.build(:host =>…
user1810502
  • 531
  • 2
  • 7
  • 19
8
votes
3 answers

ASP.NET custom control: when is LoadPostData() called?

I have developed a custom control that extends ListBox. The idea is that the control 'remembers' modifications to its elements which occurred client-side, e.g. as a result of an AJAX request. The way it works is that the control also renders a…
David
  • 15,750
  • 22
  • 90
  • 150
7
votes
5 answers

What is the Laravel way to check if the POST Request has a field left empty?

The requirement was to update user roles. The role can be empty(left blank), one, or more than one as provided in the form field roles[]. Here is the view form: @foreach ($roles as $role)
Eazy Sam
  • 288
  • 1
  • 2
  • 9
7
votes
3 answers

always_populate_raw_post_data - Trouble accessing request payload from Backbone create

I am trying to save a collection to my database RESTfully using Backbone.js with the SLIM php framework running on my server. Here is my collection: var newUser = this.collection.create( formData, { wait: true, success:…
jagershark
  • 1,162
  • 3
  • 15
  • 27
7
votes
2 answers

Grails: where does request.JSON come from, and how do I put things there with jQuery's .ajax() or .post()?

I have a controller that takes some json in the ?request body? and does awesome things with it: def myController(){ def myAction(){ println "Here is request.JSON: ${request.JSON as JSON}" println "Here is params: $params" //do awesome…
Mikey
  • 4,692
  • 10
  • 45
  • 73
6
votes
5 answers

How to dump the whole POST data to a file in ASP.NET

I'm currently trying to port an app from asp.net to php, however I just hit a wall and need a hand with this. I need to dump all the data an .aspx recieves via POST to a file, but I have no clue on how to do this any ideas ?
perrohunter
  • 3,454
  • 8
  • 39
  • 55
6
votes
1 answer

The custom error module does not recognize this error

If you hit "The custom error module does not recognize this error" in Outlook Web Access, and you're in Firefox; then your session probably just timed out! You just wrote a big email!!! If you go BACK, all form fields will be BLANK! Instead of…
RTK
  • 69
  • 1
  • 1
  • 2
5
votes
2 answers

How can I access PostData from WebBrowser.Navigating event handler?

I've got a windows form in Visual Studio 2008 using .NET 3.5 which has a WebBrowser control on it. I need to analyse the form's PostData in the Navigating event handler before the request is sent. Is there a way to get to it? The old win32 browser…
user16324
4
votes
2 answers

ASP.NET POST-DATA truncated at 49152 bytes (48K)

I'm getting errors where viewstate couldn't be decoded, and some of the errors trace to the fact that http post data was truncated at exactly 48K (49152) bytes. This was listed as one of the fixed bugs in .NET 2.0 SP1. I currently have .NET 3.5…
user1066127
  • 93
  • 1
  • 7
4
votes
1 answer

Using Selenium : How to modify or inject into HTTP Post Data Request Header?

Please note this question is related to Selenium. Before a HTML form submit i.e., selenium.click("//button[@type='submit']"); I want to inject a name value pair at native level in the HTTP Post back to the Server e.g. Change HTTP Post…
Nigel S
  • 41
  • 3
1
2 3
12 13