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. ...
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. ...
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)? ...
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[] ...
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 =...
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) + ...
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...
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 ...
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 ...
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...
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...
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); });...
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)...
Hi, How do I implement Restlet function which accepts JSON post? And how do I test this using curl? Thanks ...
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("...
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...
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...
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, ...
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...
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); ...
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...