post

HTTP status for functional redirect

Right now we've got web pages that show UI elements, and web pages that just process form submissions, and then redirect back to the UI pages. They do this using PHP's header() function: header("Location: /other_page.php"); This causes a 302 Found response to be sent; according to the HTTP 1.1 spec, 302 is for cases where "The reques...

html to jsp email form post - null parameters

I have a simple form form action="email.jsp" method="post" <label for="firstname">Your Name: </label> input type="text" id="name"<br/> <label for="email">Your Email: </label> input type="text" id="address"<br/> <label for="message">Message: </label> textarea size="30" rows=...

Processing chunked encoded HTTP POST requests in python (or generic CGI under apache)

I have a j2me client that would post some chunked encoded data to a webserver. I'd like to process the data in python. The script is being run as a CGI one, but apparently apache will refuse a chunked encoded post request to a CGI script. As far as I could see mod_python, WSGI and FastCGI are no go too. I'd like to know if there is a wa...

jQuery syntax error on POST in Opera

I have a little javascript function which is attached to an onClick event of a button. It appears to work perfectly in Firefox(3.0.4), but both Opera(9.62) and IE fails to execute any other JS from the same .js file, including what normally works. The following function is the culprit: function deleteComment(id){ $.post("ajax/comment...

How to cancel a file upload using dojo.io.iframe.send?

I am using the dojo.io.iframe.send method to send a file to my server. I want to provide a way that the user can cancel the send once it is in progress, in case it is taking too long or the user realizes she sent the wrong file. I can't figure a way to do this. I could use a timeout to terminate the send if it is taking a long time (tha...

Use GET or POST for a search form

I have a couple search forms, 1 with ~50 fields and the other with ~100. Typically, as the HTML spec says, I do searches using the GET method as no data is changed. I haven't run into this problem yet, but I'm wondering if I will run out of URL space soon? The limit of Internet Explorer is 2083 characters. Other browsers, have a much hi...

Get post values when the key is unknown in CodeIgniter

CodeIgniter allows access to POSTed data via: $this->input->post('input_name'); where 'input_name' is the name of a form field. This works well for a static form where each input name in known ahead of time. In my case, I am loading a collection of key/value pairs from the database. The form contains a text input for each key/value p...

JMeter Tests and Non-Static GET/POST Parameters

What's the best strategy to use when writing JMeters tests against a web application where the values of certain query-string and post variables are going to change for each run. Quick, common, example You go to a Web Page Enter some information into a form Click Save Behind the scenes, a new record is entered in the database You want...

How can I reformat form input before POST using Javascript (or Rails)?

I have a field in my form labeled "Name" that will contain both the First & Last name. Our existing dynamic server (to which the form is being POSTed to), expects two separate fields (first name, last name). Can I use Javascript to split the user input into two separate variables before the form is posted to the server? How would I d...

PHP open another webpage with POST data

I'm new to PHP and I'm trying to do something that may be bad practise and may well be impossible. I'm basically just hacking something together to test my knowledge and see what PHP can do. I have one webpage with a form that collects data. That is submited to a PHP script that does a bunch of processing - but doesn't actually display ...

the way to Post or Get the input data to a site in iphone application

is it possible to Post or Get the input data to a site by using objective C in iphone application,for example in HTML create a form it collect the input data from user and post to the server site ...

How do I use the "Post/Redirect/Get" a.k.a. "Redirect after Post" with asp.net

Doing a refresh after certain action in asp.net seems to make them happen again even when that action doesn't make sense (think double delete). The web way to deal with this situation is to redirect after a post to get a clean version of the page that can be refreshed without reposting an action to the webserver. How can I do this with ...

How to allow CodeIgniter GET parameters

I know that codeIgniter turns off GET parameters by default. But by having everything done in POST, don't you get annoyed by the re-send data requests if ever you press back after a form submission? It annoys me, but I'm not sure if I want to allow GET purely for this reason. Is it such a big security issue to allow GET parameters t...

Functional testing of a RESTful POST in Ruby on Rails

I'd like to write a functional test of a RESTful web service I'm working on in a Ruby on Rails app. The test is of a POST request where the body of the request is a plain XML doc and not a form. Any pointers on how to do this? The problem I'm encountering is how to specify the body XML in the call to the post method. ...

GET vs POST in HTML forms

Possible Duplicate: When do you use POST and when do you use GET? When should an HTML form tag use a GET method and when should it use a POST method? ...

ASP.NET ViewState postback with page refresh and bookmarks

The ASP.NET ViewState feature can sometimes be a double edged sword. I rely on it on most of my projects and it speeds up development considerably. My problem is that sometimes users will try to refresh a page which will cause the viewstate to be lost, other times the user might want to bookmark a page but when the get back the viewstat...

Keeping a variable around from post to get?

I have a class called myClass which defines post() and get() methods. From index.html, I have a form with an action that calls myClass.post() which grabs some data from the data base, sets a couple variables and sends the user to new.html. now, new.html has a form which calls myClass.get(). I want the get() method to know the value...

Javascript submitting of a form within a method

I have a method which prints out the order of a set of images...I need to submit this to a new php page. I have a form which currently prints out the order to the same page. <form action="mainpage.php" method="post"> <div style="clear:both;padding-bottom:10px"> <input type="Button" style="width:100px" value="Show order" onclick="s...

CGI post handling differences on Hiawatha and Apache

I'm trying to set up a light development environment to allow straight CGI in Common Lisp, and I'd like to use Hiawatha instead of the much larger Apache. I have code that works for both GET and POST in Apache, but only GET in Hiawatha; is there a difference in the way Apache and Hiawatha handle POST? ...

asp.net mvc - one door filter

I need fire a filter method with all string in GET or POST value from http request before it was bind into controller action Can i do it in Global.asax.cs? and if yes, can u give me more details or example (great) about this? ...