post

Customize the URL hit from ActiveResource

I have an application App2 to which I am sending a POST request from App1 using ActiveResource. On the App1, I have module App2 class Iteeem # Purposely misspelled here def self.edit_item self.prefix "/api/editing_item/" post :item, {:property => {:value => 5665}} end end end It hits h...

jQuery $.post fires twice?

I have this code, and for some reason my $.post function fires twice in quick succession (for 'journal/weather') according to Firebug. It still does this when I remove the "if (navigator.geolocation)", however, if I replace the $.post block with something like console.log('test'), it only fires once. What's even weirder is when I place...

hide header post data

I have never used Api's before. I am trying to sms enable my website. My sms provider provides a HTTP API to send messages from my website. It works well. However, its not secure. The api requires number, message, Username and password. And can be sent using post or get. There is no https support. I am currently passing the number and me...

Upload file contents using cURL

I have a script with which I POST data to a server using cURL. When I use an HTML form to POST the same data, the POST looks something like this and all is well: description=Something&name=aName&xml=wholeBiunchOfData&xslt=moreData The XML and XSLT are large and change; I would prefer to maintain them in external files. However, the ...

C# Asynchronous WebRequest with POST

I am trying to find a C# Asynchronous WebRequest function which will be able to POST variables to a server, and retrieve the response. I have found many Async WebRequests for C#, but they are not able to POST in them, and when I try to change them to post variables, it will not work. Cheers ...

Sending by HttpConnection file more than 1kb from J2ME app

When I send a file of size 624 B aprox. it is sent ok by HttpConnection. But when I send bigger file like > 624 B on the call target (PHP script) I don't get any POST parameters at all. I use class HttpMultipartRequest: http://wiki.forum.nokia.com/index.php/HTTP_Post_multipart_file_upload_in_Java_ME like this: Hashtable params = new H...

Convert code to POST

i have a script (php+html) full of forms and inputs, after the form is submited via post i can give the user a code (like was a GET form) q=test&t=3&u=9&q2=test&t2=3&u2=9&q3=test&t3=3&3u=9, then the user can put this code in a textarea for editing what he previously submitted how to transform the code inputed in the textarea (q&t&u) to ...

Security: Form Submission + javascript/jQuery

Question: What is best practice for form submissions while keeping in mind security? This may be a n00b question but I'm concerned that people might be able to alter some data as its being submitted. Take my example: I have a form that has a hidden input that stores a user's unique Facebook ID. I take that Facebook ID and create a use...

Send multipart/form-data content type request.

Hi The follow http post request send data using multipart/form-data content type. -----------------------------27311326571405\r\nContent-Disposition: form-data; name="list"\r\n\r\n8274184\r\n-----------------------------27311326571405\r\nContent-Disposition: form-data; name="list"\r\n\r\n8274174\r\n-----------------------------2731132...

How to Post Long URL in PHP

How can I post a full URL in PHP? For example: I have a form allowing individuals to submit a long url. The resultant page is /index.php?url=http://www.example.com/ This is fine for short URLs, but for very long and complex URLs (like those from Google Maps) I need to know how to keep all of the data associated with variable url. ...

Doing a POST from Jquery to an asp.net page and getting the values in the page

Hello I'm posting some data from Jquery using Jquery.Post() to an asp.net page. How to get the data in the POST request in asp.net page? Thank you NLV ...

iPhone ASIFormDataRequest with multipart/form-data

Hello Everyone, as I have read in the ASI Documentation, its writen: "Data is posted in 'application/x-www-form-urlencoded' format, or 'multipart/form-data' format when uploading binary data or files." That's exactly my Problem. I am sending just a String to a server, but the server just accepts 'multipart/form-data' and as I just sen...

How can you make Pylons email you the full post parameters with an error report?

Pylons can email you errors when something goes wrong in production mode, but it truncates the post parameters so it's hard to see what the error is. Is there a way to make it email you the whole thing? ...

Using jQuery's $.post to log in?

Is it possible to use jQuery's $.post function and have the cookies set in the browser? I'm trying to set it up so that it is possible for my users to be automatically logged in to a certain site by sending POST variables. ...

Error imploding $_POST[] array containing php variable

Hello, I am trying to implode an array in a $_POST[]. I am doing this inside of a loop which searches for values in ~31 arrays...$_POST['1'], $_POST['2'], $_POST['3'], etc. I am trying to do this with: while($i <= $_SESSION['daysInMonth']){ $month = $_SESSION['month']; $day = $i; $names = implode(',',$_POST['names_'.$i]); $region = $...

AJAX Submit via Post entire Form

I am trying to simply post an entire form w/o the need to create the url like you would have to in a get call. All of the tutorials I have seen for this for some reason create a parameter URL and send it via the send ability. I want to be able to send a form via the form id or form name, is this possible? The reason is because I will ha...

!is_null() not working as expected

dispatch_address_postcode isn't mandatory and it will still run even if it's blank: if (!is_null($_POST['personal_info_first_name']) && !is_null($_POST['personal_info_surname']) && !is_null($_POST['personal_info_email']) && !is_null($_POST['personal_info_telephone']) && !is_null($_POST['dispatch_address_country'...

WordPress: Creating a search form for custom post types

What should I look into if I want to build a form that searches through custom post types, i.e. a completely rebuilt form? Creating the actual form and it's elements is no problem but the next steps brings up a lot of tricky questions such as 1. How can I pass $_GET data to another file maintaining WP's permalinks intact? and 2. How can ...

AJAX POST and PHP

Hi, I have a AJAX script which sends a POST request to PHP with some values. When I try to retrieve the values in PHP, am not able to get anything. The AJAX script is xmlhttp.open("POST","handle_data.php",true); xmlhttp.setRequestHeader("Content-type","text/plain"); var cmdStr="cmd1=Commanda&cmd2=Command2"; xmlhttp.send(cmdStr); alert...

How to get raw request in PHP?

I have a script called api.php on my server. I call it from other server using POST request. Is there any way to get in my api.php raw contents of POST request? ...