post

How do I send long PUT data in libcurl without using file pointers?

I'm trying to interface with the Google Contact API, and in order to update a contact on the remote side, I need to use a PUT request instead of POST. Since the data I want to PUT is already in memory, I really don't want to deal with file pointers, which seems to be the default behavior of CURLOPT_READDATA. Thus, I understand I need to...

php: check against dynamic $_POST possible?

<?php $var = "tax_" . $taxkey; if(isset($_POST[$var])) echo $var . "SET"; ?> I need to check wheter a "dynamic" POST value is set or not, is this possible in PHP? EDIT: sorry guys, this has been solved! ...

post multiple forms on a single button press

My page conisits of x amount of forms. One for each database entry. The user can change the data and save the individual item back to the database. But where I am stuck is with a SAVE ALL button. Can you post multiple forms?? I am pretty certain you cannot with php, so I'm looking at javascript to solve my problems. Specifically: docum...

SaveDialog by post response

Hello. I've got http handler, which returns file, by post parameters: public void ProcessRequest(HttpContext context) { string user = HttpContext.Current.User.Identity.Name; FilePermissionHelper helper = new FilePermissionHelper(user); string path = context.Request.Form["file"]; bool canDownload =...

Automating a form post in Firefox

I go to a web form, enter some info into a number of fields on the form, click the Submit button (which does a POST) and get results. I do this frequently and would like to automate this process. I mainly use Firefox. I've looked at Watir but perhaps overkill for my needs. Suggestions? ...

Saving form data when POST submission is not validated

I need to validate a form in php and display some error messages in the view if there are validation errors. The problem is that once the form is submitted, sending the user back to the page will clear all the of the completed form fields. Is there a simple way to not lose the unvalidated form data? The only solution I can come up with...

ASP.NET MVC: Is it possible to send error data to a non-POST page?

Since POST request is separate, I have to do all the stuff I already did in a GET request again. So is it possible to redirect to the same page, but as a GET request? I know it's kinda confusing... [HttpPost] public ActionResult Foo(...) { ... return View("Foo", modelWithErrorsData); // Returns POST, I need GET } ...

PHP $_POST, $_GET, and $_REQUEST keys

Is there ever a case (like some quirky browser) where a form input field's id becomes the key in $_POST, $_GET or $_REQUEST, instead of the field's name? We were having trouble with a field where the ID didn't match the name. Changing the ID to match appeared to fix the problem. The issue was purely PHP parsing; no JS involved. Coinci...

MS Access perform POST webrequest

In my MS Access application I need to send a batch of info to my webserver on a regular basis. I don't need anything fancy like SOAP, XML-RPC or anything, just a simple POST page request is sufficient. I've Googled a bit but have been unable to turn up anything really helpful. Does anyone know of a resource or have a code sample to perf...

jQuery 1.4.2 postnot working the same way as in 1.3.2

Hey, I have just updated to 1.4.2 and now everything that has worked before does not. And I cant figure out why. var data = { 'what': 'post', 'type': $(this).attr('class'), 'id': $(this).next('input').val() } $.post( '/utils/ajax/', data, function(response) { alert(response.result); }, 'json' ); It...

WCF Ajax Call not working with Jquery $.ajax

I have the following jQuery (service name altered): var url = "http://localhost/services/MyService.svc/addentrant"; var stuff = $("#signup-form").serializeArray(); $.ajax({ type: "POST", url: url, contentType: "application/json; charset=utf-8", data: stuff, timeout: 10000, success: function (obj) { alert('yay!')...

Calling a REST service with Python

I have a REST service that I'm trying to call. It requires something similar to the following syntax: http://someServerName:8080/projectName/service/serviceName/ param1Name/param1/param2Name/param2 I have to connect to it using POST. I've tried reading up on it online (here and here, for example)... but this is my problem: If I...

Hide posts in wordpress

Hi, I've created new entities that are similar to posts which are displayed via my custom pages. When I create this custom entity I also create new post and attach post ID to custom entity, so I can post comments to my custom entity. I open page with my custom entity and comments are displayed too, and everything is great, except that ...

static value in a form

I have a form with list of fields : last name email country message Before sending the form, i want to joint to it a static value : destination=marketing. i don't want it to be visible in my form. how would this be done ? ...

Correct Usage of $.post in jQuery

I have a website built across a series of pages and scripts, and I'm trying to link them together using Ajax. I was told the easiest way to send back to the server was using jQuery, so I'm trying that out but I can't seem to get it to work. My three files are as follows, with the methods in question being the lines containing onclick() a...

Help me with posting with Net::HTTP

I am using a third-party API (Spreadshirt's API) and in order to perform a basket creation, I need to send an xml through a POST request. I am trying to do this with the available Net::HTTP functions and this is how I am doing it def get_session @time = Time.now.to_i * 1000 #get the current time as integer @sha1 = Digest::SH...

jQuery Ajax POST unsuccessful

I'm unable to successfully post using jquery's ajax functionality. URL of the running page is http://localhost:9999, URL of the target (web service) is http://localhost:8080. No the ports aren't the same, they are 9999 and 8080 respectively. Below is the request and jquery ajax code. Request: OPTIONS /profile/set_member HTTP/1.1 H...

How to get field values and do a post in jsp?

Hi, i am working on a simple jsp page, it contain 2 textbox firstname and lastname,and a ok button, when textbox is filled and button is clicked, I need to get values of firstname and lastname and post to url http://mydomain/firstname/lastname, how to do this? ...

A Good JAVA library to parse HTML, POST AND GET HTTP suitable for Mobile?

Hello, I'm making an android client for a web site. my app have to go through the website, parse HTML, post some forms, send HTTP requests etc. What library covering all this stuff you recommand me to use ? thanks. ...

Paypal website payment standard NOT integrating with Java

hey people, I am stuck trying to integrate java and paypal together. I have posted here: http://forum.springsource.org/showthread.php?p=316498#post316498 any help would be greatly appreciated, please advise. ...