post

Double POSTing user data - security risks/user experience/bad practise?

What are the issues with double POSTing user data? I am building a site for a client that requires login to a bespoke backend system that I am constructing, and login at the same time to a third party system hosted on a seperate domain. Client system is built in PHP and Vendor system in .NET. The login process requires both sites to pe...

iPhone HTTPS post with xml header

Hi, I have to make a HTTPS Post with some XML data, but I need to send the XML in the HTTP header. Using the body I would do something like this request = [[NSMutableURLRequest alloc] initWithURL:url cachePolicy:CACHE_POLICY timeoutInterval:TIMEOUT_INTERVAL]; NSString *postLength = [NSString stringWithFormat:@"%d", [postData length...

Ruby on Rails and Cocoa - POST puts values into DB as NULL

Hello, I am trying to send a POST request to my Ruby on Rails local server. Unfortunately, at first it wouldn't let me POST because of protect_from_forgery, so I ended up setting it to false in development and production. Basically, my issue is that I'll send the POST request from my Cocoa app with all of the wanted params, and the Ruby...

Reading CGI POST data the most efficient way

I'm in great need of a way to dig through potentially huge amounts of CGI supplied POST data. With reading the GET data it's no big deal, as I can just re-request the QUERY_STRING environment variable as often as I want, but with POST data which is supplied via stdin. I can only read it in once and have to store it somewhere. My curre...

ASP.NET MVC-2 How can you recieve a POST from another website?

If another website is making a POST to my ASP.NET MVC 2 site, how can I capture it? Do I need to do anything to the routes? eg The other site does this: string url = "https://mvc2-site.com/TestReceive"; // that's my site's controller action NameValueCollection inputs = new NameValueCollection(); inputs.Add("SessionId", "11111"); Sys...

jQuery double event fire after post/get

ok i've wracked my brain and others to figure out why this is happening in IE and latest version of FF. It works in chrome. i am but a novice developer and recently started using jquery. so i dont even know if i'm going about this correctly. its a basic form for the most part. jquery ajax post() then get() to update the page. onc...

Posting Javascript objects with jQuery to MVC ActionResult

Hi, I have created a client side array of javascript objects that I'd like to post back to the server. But when I do the following the array is coming back as 'undefined' Serverside in the FormCollection. I'm using jQuery and here is my javascript code: function MyObject(){ this.Param1; this.Param2; } var myArray = new Arr...

jquery .post with $("html").html(data), body css not working

i'm using the following code to submit a form: function submitfilter(){ alert("in here"); var o = $("#opentimes").val(); var p = $("#price").val(); var d = $("#distance").val(); var t = $("#type").val(); $.post("eateries.php", { opentimes: o, price: p, distance: d, type: t }, function(data) { $("html").html(data); } ); return fal...

Problem understanding javascript multi-dimention arrays

I've been struggling with this for hours. I'm obviously missing something completely. I want to get some values out of TinyMCE textboxes, along with IDs. Then post these via ajax to the server. jQuery 1.4 and JSON library are loaded var send_data = []; $('.contact_check').each(function (i, item) { var this_id = $(it...

Firebug error: failed to load source for localhost/folder/foo.ashx on a POST in the RESPONSE tab

Firebug 1.5.4 has been correctly displaying the response returned by my webservice in its RESPONSE tab: Console...HTML...CSS...Script...DOM...[Net] Headers....Post....[Response]....HTML But for some reason, now, instead of displaying the response, it is now showing an error message that I don't understand: Failed to load source ...

How to post data from php to aspx page?

hi all, i have a php page.Now i need to post data from this php page to my another aspx page? can i post data from a php page to aspx page? <form method="post" action="http://localhost/.../friend.aspx?title=abc" enctype="multipart/form-data"> <td ><input type="submit" name="search" value="SEND"/></td> ...

possible to get POSTed parameters and RESPONSE content in Opera Dragonfly?

When I look at the Network tab in Opera Dragonfly, I'm not seeing POSTEd parameters or the RESPONSE content. Here's what I see: Raw Response HTTP/1.1 200 OK Server: Microsoft-IIS/5.1 Date: Thu, 15 Jul 2010 12:43:19 GMT X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: no-cache Pragma: no-cache Expires: -1 Conten...

Inconsistant IE8 ajax post success from MVC2

I am getting an incosistant error in IE8, it happens about half the time. I have cascading drop downs using ajax to fetch the next select box options. $(function () { $("#stock_item_id").change(function () { var stock_item = $("#stock_item_id > option:selected").attr("value"); $.ajax({ type: "POST", ...

Using PHP & curl to post an html form that includes a file

I have a form like this: <form method="POST" action="i.php" enctype="multipart/form-data"> <input type="text" name="field1"> <input type="text" name="field2"> <input type="file" name="file"> <input type="hidden" name="MAX_FILE_SIZE" value="100000"> <input type="submit"> </form> On the page I already have: $URL = 'http://somewher...

Persistent post names in Wordpress sidebar

Hello, I need to display all my post titles in the sidebar of my Wordpress theme all the time. Just now it works only when I am browsing a category (it shows all post titles from that category). But when I click on a post, only this post title remains into my sidebar, which is not supposed to function like that. Could you help me, plea...

c# - WebRequest HTTP POST with Cookie (port from curl script)

The IBM RTC RESTful api gives an example of a shell script for authenticating with the server: COOKIES=./cookies.txt USER=my_user PASSWORD=my_password HOST="https://myJazzServer:9092/jazz" curl -k -c $COOKIES "$HOST/authenticated/identity" curl -k -L -b $COOKIES -c $COOKIES -d j_username=$USER -d j_password=$PASSWORD "$HOST/authentic...

Data not saving in MVC2 Edit_Post controller action

My View inherits a strongly-typed object. My Edit (Get) controller action returns a View, passing to it the model object. When my Edit (Post) controller action accepts a FormCollection object, calling UpdateModel and db.Save() works fine. If I change the Edit (Post) controller action to accept the strongly-typed object instead of the ...

handling a redirect from a cross-origin post in AJAX

We are trying to create a RESTful API that will be hosted on server x.foo.com. Client html applications (built in jquery) will be hosted on y.foo.com. I am dealing with cross-domain issues by setting the Access-Control-Allow-Origin header as described here http://www.w3.org/TR/cors/. So far so good, and I can now successfully make AJAX...

How can I use python to load a browser session that posts values to a url?

I have a python script that takes a number of variables. I also have a html page that can receive post values. How can I start a browser from python and point it to the html page I have above and send those post variables to the html url? The problem I have is that if I use urllib/urllib2 to do the post, it doesn't load the browser win...

Image uploading from Python or cURL to Tumblr?

I'm working on a project that involves uploading an image to tumblr from Python. I've had luck using Tumblr's API( http://www.tumblr.com/docs/en/api ) in doing regular text-posts, but image uploads have been giving me trouble. The error messages their server returns have been limited to just telling me that there was an "Error Uploadin...