post

HTTP POST requests in PHP

How do you go about redirecting a browser and sending a HTTP POST request in PHP? A header("Location: file.php?foo=bar") of HTTP POST requests, if you will. ...

can anyone recommend a firefox plugin so I can see exactly what is being sent to a post form?

I'm trying to debug my form POST code. Is there any firefox plugin so I can see exactly what the browser is sending (rather than monitor at the server side)? ...

Getting a file into Request.Files

Hi, I have a device that uses a custom scripting language. This language provides the capability to set http request headers then perform a post to a URL. The server that the device communicates with is running .net, and I would like the handler on the server to retrieve data from the device by simply pulling it from the Request.Files[] ...

Sending POST data in XUL?

I'm trying to send POST data to the current tab, based on this (https://developer.mozilla.org/en/Code_snippets/Post_data_to_window). But it doesn't seem to be working, nothing happens... I'd be very grateful to whoever shines light on the problem! Thanks in advance! :D var dataString = "name1=data1&name2=data2"; var stringStream =...

Java: how to use UrlConnection to post request with authorization?

Hi, I would lake to generate POST request to a server which requires authentication. I tried to use the following method: private synchronized String CreateNewProductPOST (String urlString, String encodedString, String title, String content, Double price, String tags) { String data = "product[title]=" + URLEncoder.encode(title) + ...

JQuery Post to MVC method session variables dissapear

Hi, I'm writing an ASP.Net MVC application using Jquery to post some data to my users session. A user 1st accesses my site's page and then I have a button which performs a post using JQuery to an MVC controller method to store some data into the users session. When the initial page loads I create a session object for my user using a se...

Web Proxy (PHP & curl), AJAX and Multidimensional associative $_POST Array or $_SERVER['QUERY_STRING']?

I've got an html form that submits via AJAX (jquery Form Plugin) to a PHP Web Proxy on my server. The web proxy uses curl to POST to a third party script. My html form has inputs with names like p[fname], p[lname], c[name], p[loc], p[loc][email], p[loc][email][detail]. The names are specified by the third party application. When I use ...

Graffiti CMS plugin post to Facebook users wall?

I want to create a plugin for Graffiti CMS that automatically sends to Facebook my post when i finish to publish it. There is any way to connect to facebook with the user's username and password and post the new content to the user's wall? I read about the .net library that microsoft released for facebook but all auth is made by poping ...

Ajax arguments not been seen by ASP.NET

Hi I'm passing Ajax arguments from a source ASP.NET page to destination ASP.NET page. The code snippet looks like the following: $('#sourcePageBtn').click( function() { $.post('destination.aspx', { name: "John", time: "2pm" }, function(data) { }); }); I'm trying to access the arguments in the script sec...

commandline curl POST gives zero content length

I'm using commandline curl to do a POST via a proxy but my form data is vanishing to zero content length. Any ideas what I'm doing wrong? Here's my command line (uses a public test form so others can try it): curl -v --proxy-ntlm --proxy proxyserver:proxyport --proxy-user : -d "fname=a&lname=b" http://www.snee.com/xml/crud/posttest.cgi...

Ajax Jquery Get, Post mothed issue.

I am using : function AuthenticateUser(alias, password) { //$(document).unbind('keypress'); $("#Login").unbind("click"); $.getJSON(RPC_URL + "?c=User&password=" + urlencode(password) + "&alias=" + alias + "&m=login&jsoncallback=?", function(data){ CheckAuthentication(data,alias,password); });...

JQuery/ajax page update help pls

Hi Am new to Jquery/ajax and need help with the final (I think) piece of code. I have a draggable item (JQuery ui.draggable) that when placed in a drop zone updates a mysql table - that works, with this: function addlist(param) { $.ajax({ type: "POST", url: "ajax/addtocart.php", data: 'img='+encodeURIComponent(param)...

Restlet POST using JSON

Hi, How do I implement Restlet function which accepts JSON post? And how do I test this using curl? Thanks ...

ASP.NET MVC 2 DataAnnotations: No validation for incomplete AJAX POSTs

I have an entity model User and it's metadata is public class UserMetadata { [Required] [RegularExpression("...")] public String Username { get; set; } [Required] public String Password { get; set; } } I have a controller that recives REST callbacks. One of it's actions is // POST /users [HttpPost] [ActionName("...

Get hold of redirect url with Java org.apache.http.client.

Hi Experts! I need help with figuring out how to get hold of the redirect after I make a post to the server. First, I need to do a get to obtain some cookies from the server. Then I perform a post with the cookies and additional parameters. The server then answers with a 302 redirect. How do I get the url for that redirect? Code looks...

Encode params used within a post

Hello Experts! I need to encode the params to ISOLatin which i intend to post to the site. I'm using org.apache.http. libraries. My code looks like follows: HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost("www.foobar.bar"); post.setHeader("Content-Type", "application/x-www-form-urlencoded"); HttpPa...

ASP.Net + MVC + VS 2008

I am using asp.net MVC with Jquery. I use RenderPartial method to load control and open as modal dialog. After submit small form on modal dialogue i want to get focus on same dialogue in case of error. Javascript $(function() { $("#dialog").dialog({ bgiframe: true, height: 180, ...

Curl/Fetch question - Referer, Post data, Cookies

Hi.. Got a Curl question (and yeah, i've searched Google, this site, as well as the docs!!) Somewhat new to curl. Trying to use Curl from the cmdline (linux) to fetch pages from a college website (sjsu). I can somewhat get the 1st page, but the 2nd/2rd pages use referers/cookies.. I think this is where things are screwed up.. I'm also...

Basic post to test web service

I am working on form, which send input to webservice via post and display result. It must be simple, and it works fine on localhost. But when I try to use it agains live I have error 500. Here is my code: WebRequest request = WebRequest.Create("http://localhost:3192/WebServices/Export.asmx/" + uxAction.SelectedValue); ...

Uploading an image using C# and WebRequest?

Here is the working code in Python (using cURL): #!/usr/bin/python import pycurl c = pycurl.Curl() values = [ ("key", "YOUR_API_KEY"), ("image", (c.FORM_FILE, "file.png"))] # OR: ("image", "http://example.com/example.jpg"))] # OR: ("image", "BASE64_ENCODED_STRING"))] c.setopt(c.URL, "http://imgur.com/api/u...