post

iphone table view delete entry and update app engine db

Hi, I have a tableview with data, that i post to the app engine database. Whenever i delete an entry in the table, i want to delelte the item in the app engine database as well. How do i know which entry to delete? I was thinking of this: for every item i save in the GAE store, i make a reference to a model with the iphone unique devi...

URL requests adding POST data to querystring

I am using ExtJS to send an Ajax request to a PHP page on a server, wanting to send the parameters as POST variables rather than in the querystring. I have included a random token in the querystring since we were having caching issues on one of our proxy servers. Ext.Ajax.request({ url: 'ajax.php?action=test&randToken=' + generateRando...

Cross-site tomcat form post not working

Hi, For a customer, I need to write a Servlet which can print values in a form post. The form is hosted on another server and looks somewhat like this: <form action="http://myserver/myServlet" method="POST"> <input type="text" id="someName" value="someInterestingValue"/> <input type="submit" value="submit" /> </form> I have a Tomcat ...

(ruby) ruby sockets: how to create a POST request?

How does one create a POST request using TCPSocket in Ruby? Is there a special format to making a post? I have the following but I get a parse error (it's for a rails server): require 'socket' s = TCPSocket.open("localhost", 3000) s.puts("POST /<controller>/<action> HTTP/1.1") s.puts("Host: localhost:3000") s.puts("Content-Type: applic...

sending XML file from IPhone to a server using Post Method

I am trying to send the data to server from my Iphone client. It works fine for most values but when itry to send a string like "IPhone+Cocoa" the server shows the string as "IPhone Cocoa". I have tried to google it but without success is there any why of doing it. Here is my code -(void)sendRequest:(NSString *)aRequest { NSMutableUR...

Post the checkboxes that are unchecked

I've got a load of checkboxes that are by default checked. My users will probably uncheck a few of the checkboxes (if any) and leave the rest of them checked. Is there any way to get the checkboxes that are NOT checked in a form post, rather than the ones that are checked? ...

Escaping user data, without magic quotes

Hey, I'm taking a look at how to properly escape data that comes from the outside world before it gets used either for application control, storage, logic.. that kind of thing. Obviously, with the magic quotes directive being deprecated shortly in php 5.3.0+, and removed in php6, this becomes more pressing, for anyone looking to upgrad...

How can I do a sort and search using both GET and POST variables?

I am currently using column header's as links that when clicked will sort the results by the column name by adding a get variable to the url. Here is an example: <a href=" <?php // Sorts by order id. If already sorted by order id, then it will change the link to sort descending if(!isset($_GET['sortby']) || $_GET['sortby'] != 'ord...

why the jmeter not work ?

I use jmeter to record the requests and then perform a performance test. after i records all the requests with proxy server. and these requests contain post form. after that I run the test cases, but I found the post form not work, it can not create a record in website's database automatically. but before that i used webload, everything ...

does jquery .post or ui dialog have a "please wait . ." icon option?

when i click on a link, i have a jquery .post call in a javascript function. This calls a controller action which returns a partialresult into a jquery ui dialog. this process can take a few seconds as the controller calls the model for some calculations, etc . . anyway, is there anyway to display a "Please wait . ." or animated icon ...

Perform HTTP Post from within Excel and Parse Results

I have access to an API. The API takes an XML post as input and then returns an XML response with the relevant data. I want to Send the HTTP Post to the Server (Authentication and Request will be sent together) Receive the response (One of the options to be returned is CSV or XML) Insert the data into the appropriate rows and column...

How to send a HTTP POST Request in Delphi using WinInet api.

Hello, I am trying to make HTTP Requests from Delphi using the WinInet functions. So far I have: function request:string; var hNet,hURL,hRequest: HINTERNET; begin hNet := InternetOpen(PChar('User Agent'),INTERNET_OPEN_TYPE_PRECONFIG or INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0); if Assigned(hNet) then begin try hURL := I...

What do I need in order to save binary file post?

Hi, I have a client program that uploads files to the server. Initially I used POST method and have mod_python to save a uploaded file. Then, I found that a file might contain some special character so by the time my function is called, some of data have been cut off because I think that Apache is parsing data that I am POSTing. Thus, i...

How to get POST data as array with C#

I'm developing an ASP.Net handler with C# that receives an array of data posted from an external Flash program. How can I use the data as array? It seems the HTTP Context used in ASP.Net automatically html-decodes the post data so that it comes out as a simple string. The separator in this case is comma (could be it's always a comma, nev...

The values of a form can not be passed on to the action file or the action file can not get the values of the fields in the form

This is the PHP code: $html=<<<eod <div>Your current account balance is <span style="color:red">$$balance</span></div><br/> <form id="digitalchange" action="digitalchange.php?" action="post"> <input type="hidden" name="tid" value=$announcementid /> <table rules=all FRAME=BOX><tr><td>Balance:<span class="price">$balance</span></td><td>Cu...

Interrupting POST request

I'm working on ASP.NET file uploader and currently trying to resolve the following issue: Assume at some moment the server side HttpModule decides that incoming data stream is too long and must be aborted. So the code that would handle this situation at first glance would be very simple. Like this: try { ... if (size >= maxSize) ...

Why do I get a CURLE_URL_MALFORMAT when trying to http post?

Here's the code (extracted from an existing application): CURL *curl = curl_easy_init(); _ASSERTE(curl); string url = "http://127.0.0.1:8000/"; char *data = "mode=test"; curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data); curl_easy_setopt(curl, CURLOPT_URL, url); CURLcode res = curl_easy_perform(curl); bool success = (res == CURLE_OK);...

Programmatically access & post a form that requires session

Hello: I am attempting to use PHP and cURL to: Access a web-form & maintain session Post the data to that form with session in place In my head, I see it as two separate functions, one to get the form (initiate session) and another to post the data. ...

net/http and posting data to Google Checkout

I'm trying to post form data to Google Checkout using the following code: x = Net::HTTP.post_form(URI.parse('https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/[merchant_number_here]'), @params) When I attempt to submit using this line, I get the following error: Errno::ECONNRESET in PaymentsController#create Connectio...

resume uploads using HTTP?

Is it possible to resume interrupted uploads using HTTP Post? I am working on a project that uploads several files to a HTTP server. Thanks. ...