post

retaining POST parameters after login page in symfony

how can i make symfony retain the POST data after login page? for example, the cookie was expired while user was filling the form. after submitting the form user gets a redirect to a login page. and after successful login he gets a redirect back to form's "action" url without any POST data from the initial form. is there any mechani...

XML POST REST Request using Python

Does anyone have a simple example of sending an XML POST request to a RESTful API with Python? I am trying to use the urllib2 Python library to "create a new project" in the Harvest API, with no luck. The payload variable is a valid XML document that is a near copy/paste of their documentation (under the Create New Project heading) sho...

didReceiveData of NSMutableUrlRequest never triggered

Hi I’m new in iphone development world and I’m trying to call a web service using the HTTP method POST. To do that I'm using the NSMutableUrlRequest. My problem is that the DidReceiveData delegate is never called and the NSUrlConnection doesn’t return null. Here is my code : - (void)connection:(NSURLConnection *)connection didRecei...

jquery ajax POST size limit?

I’m using jquery to send text back to my ajax.php controller like this: var dataString = "1234567890"; $.post( '../ajax/save', { data: dataString }, function(){ alert("success"); }, "text"); It works well, that is until the dataString gets to be ~3500 characters long. At that upper limit (~3.5 KB), t...

Retrieving JSON Object Literal from HttpServletRequest

I am writing code that needs to extract an object literal posted to a servlet. I have studied the API for the HttpServletRequest object, but it is not clear to me how to get the JSON object out of the request since it is not posted from a form element on a web page. Any insight is appreciated. Thanks. ...

Internet Explorer Post Data Bug - ASP.NET MVC

I just started playing with MVC and I've run into a roadblock. I'm using a partial view as a User Login flyout on the header of each page using OpenID. When the user clicks on the provider (similar to stackoverflow) it authenticates and then either returns to the calling page or redirects to the signup page. The code works flawlessly ...

Posting with snoopy using proxy takes too long

Hi I have a php script which tries to do a post. I use Snoopy class and also I use proxy. I managed to post but when I use a proxy the posting is extremely slow. I mean it can take till 30 minutes. I don't want to block my script for 30 minutes waiting for a post. Any idea how could I solve this? The code looks like: require('../includ...

jQuery - Post array of multiple checkbox values to php

Why is only one value of the "db" checkbox values array being sent to the server side script? JQUERY: $(".db").live("change", function() { $(this).add($(this).next("label")).add($(this).next().next("br")).remove().insertAfter(".db:last + label + br"); var url = "myurl.php"; var db = []; $.each($('.db:checked'), functio...

move object from 1 page to another?

Hay guys. I'm kinda new to OOP in PHP. I've learnt how to write and create objects. Is there a way to take an object and pass it to another script? either using GET or POST or SESSION or whatever. If there isn't how would i assign an object some variables on one page, then assign the same object more variables on another page? Thanks ...

jQuery POST request - submitting a <form> inside of an <iframe>

I'm creating a quick prototype as a proof-of-concept for a bigger project. I need to create a working cross-domain POST request, and I have jQuery available. Since I'm assuming (please correct me if I'm wrong) that $.ajax() will not work because the page making the POST request lives in a different domain than the server receiving the r...

jquery $.post function's result data

When I make an ajax call (see code below), what is "data". How do I set and get data // $.post() $("#post").click(function(){ $("#result").html(ajax_load); $.post( loadUrl, {language: "php", version: 5}, function(data){ $("#result").html(data); }, "j...

.htaccess Redirect to External Site and Forward POST data while Changing address bar?

Hey, I want to use .htaccess to redirect the requested page to the exact same page on a different domain, and I want it to forward all POST data while CHANGING the address bar to the new domain, like a normal redirect. Here's my code. Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.domain1.com/$1 [R=301,L] The pr...

How Do I make a simple .htaccess internal redirect Catch All script while forwarding POST data?

I just want to catch all requests and forward them internally to my catchall page with all POST data intact Catch all page: http://www.mydomain.com/addons/redirect/catch-all.php I've tried so many combinations, but my server doesn't want to redirect internally if I specify more than catch-all.php # Internally redirect all pages to "Ca...

Bad Request 400 error when trying to do a HTTP POST

I have written a WCF REST Service as follows namespace UserService { // TODO: Modify the service behavior settings (instancing, concurrency etc) based on the service's requirements. Use ConcurrencyMode.Multiple if your service implementation // is thread-safe. // TODO: Please set IncludeExceptionDetailInFaults to false...

issue with posting to WCF REST service...

I created a REST service using WCF. It has 2 operations; one has [WebGet] applied on it and works fine both on localhost and on my production server. But, the other operation that has the following attribute applied on it works only localhost not on production server. Can anybody tell me what could be wrong here ? The attribute in ques...

submit form data into iframe via post [file upload]

UGH. Hi. I have a form. I'd like to know how/if I could submit this form to an iFrame that has the page that will handle the file upload/naming. If I try even something simple like post an input/text to the form, nothing happens (the handler is set to echo the $_POST). I have tried setting the iframe name/id et. al. and setting the fo...

JRuby on Rails post data cut short

Hey Guys, I creating a site in JRuby on Rails (JRuby 1.3.0 ). I am using Tomcat with it also. I am posting data to the server with a POST form. The post goes ok but is truncated when it gets to the controller to around 1000 characters. I have tried using JRuby 1.4RC1 to see the issue disappears but the problem is still present. I...

How to use Python to log into Facebook/Myspace and crawl the content?

Right now, I can crawl regular pages using urllib2. request = urllib2.Request('http://stackoverflow.com') request.add_header('User-Agent',random.choice(agents)) response = urllib2.urlopen(request) htmlSource = response.read() print htmlSource However...I would like to simulate a POST (or fake sessions)? so that I can go into Facebook ...

Getting post vars with swf-upload

I am using swf-upload to allow users to upload images quickly. I need them to be able to select which galleries they want them to appear in so I have added extra controls to the form - but they are never passed in GET or POST to the upload.php catcher. I think 'addPostParam' is what I need to set, but am not entirely sure where or how ...

jQuery get and response to html, POST problem after that

Hello, I have the following function: jQuery(document).ready(function($){ $("div.findButton").click(function(){ UidID=Math.floor(Math.random()*1000); PostCode=$("#postcode").val(); $.get("result.php", {postcode: PostCode,uid:UidID}, function(response){ $("#result").html(response); }); }); }); example content of t...