post

jQuery .post() and dynamically specifying the return type

Hi Guys I have the following $.post() function that expects JSON as its return value. $.post($(this).attr("action"), $(this).serialize(), function(data) { if (data.returnData) { //do stuff with data.returnData } }, "json"); This piece of code does the trick so long as the return type is JSON. The question I ha...

How to represent HTTP GET/POST et. al. / webhooks in simpler string forms

I'm currently involved in the design phase of a HTTP-based API for a Messaging-type project. The system is primary composed of service-oriented loosely-coupled heterogeneous daemons talking to each other via HTTP. Each daemon handles HTTP requests and responds appropriately whether a submitted message was processed or not. At the same ...

The Checkbox opens link onClick when form is submitted, but how do I post the form at the same time?

I am trying to build a downloads section where the visitor completes a form and then selects check boxes to open download dialogs. I would like the form to submit and the dialogs to open, when the button is clicked. I am not very good at writing scripts, although I can read them. Currently I can only get one or the other to work! The ...

Uploading files different servers at once using a single html Form

Is there a way to make a form where it can simultaneously upload to several servers at once? Currently in my web application, I am asking the users to type in some info + select a few files to upload. Title, Description, Info, etc File 0 File 1 File 2 File ... On the backend, I'm using Pylons. Currently it accepts POST of (info + ...

Using .NET to Post a file to Server HttpWebRequest or WebClient

Okay so here is the deal. As the question states, I'm trying to POST a file to a webserver and am having a few issues. I've tried posting this same file to the same webserver using Curl.exe and have had no issues. I've posted the flags I used with curl just incase they might point out any potential reasons why I'm having trouble with ...

using ssl with aspnet mvc creates a problem when posting data on to the page which is secure

I know there are many posts regarding and it works fine if the action method which i am calling is just a get method, but it fails if the action method has a 'Post' attribute because in the code we do a redirect to the url and not a post I am using code below... using System; using System.Web; using System.Web.Mvc; namespace Helpers {...

What is the size limit of a post request?

Sorry if this is duplicate,I would think it would be but couldn't find anything. I have a flex application that I am posting data back to a php/mysql server via IE. I haven't run into any problems yet, but knowing this ahead of time might save me a bunch of frustration and work. Is there a size limit to posting data via http? This art...

Strongly typed view with a SelectList for DropDownList via ViewData: type mismatch on submit

I am trying to create a form in ASP.NET MVC2 RC 2 that is based on a calendar event object. The object has eventTypeId which is a System.Int32 that I need to populate with via a select list. The controller to create the initial view is: [WAuthorize] public ActionResult AddCalendarEvent() { CalendarEventTypesManager calendarEventTyp...

Will using the php function "insert into" create new columns if they aren't already defined, or return an error?

I'd like to use a foreach loop to insert a _POST associative array into a database using INSERT INTO. What I need to know, is if my _POST data contains keys that don't match the columns of my database, will INSERT INTO simply create these columns in the database? if not, will it return an error and not update my database at all? or wil...

.NET MVC Controller action not invoked by GET or POST from Flex app

A flex app running in a view of my .NET MVC app can load data fine from another route, but submitting data via either POST or GET never invokes the controller action. Interestingly, the only way I can get the action method to fire is by passing intentionally malformed post variables in the http request. Odd. Content type is application/...

How do I use Python's httplib to send a POST to a URL, with a dictionary of parameters?

I just want a function that can take 2 parameters: the URL to POST to a dictionary of parameters How can this be done with httplib? thanks. ...

How to Destroy NSHTTPCookies ?

I am running a Post call to a URL and logging into a system. This is working, but after the login, I am attempting to retrieve the cookies – but when I do this: NSArray *allCookies = [NSHTTPCookie cookiesWithResponseHeaderFields:[response allHeaderFields] forURL:[NSURL URLWithString:mywebsite"]]; NSLog(@"How many Cookies: %d", allCooki...

How to pass variable from JavaScript to PHP using jQuery POST

I am passing the variable sessionnum from the following Javascript function in the page chat.php: $(document).ready(function(){ timestamp = 0; updateMsg(); $("form#chatform").submit(function(){ $.post("backend.php",{ message: $("#msg").val(), name: auth...

How to login system with http post connection grails?

Hi i am new to grails , i want to create connection to host like(http://ed.yeditepe.edu.tr) with some parameters taken from user(username and password) and then send this parameters with post connection to that host(ed.yeditepe.edu.tr) and make user login to system , any code sample or document for that (by the way user browser must be i...

Trying to call a WCF service with a WebRequest

I have a WCF service that needs to be called by a 3rd party app, posting some raw XML. I am trying to test my service by constructing a simple WebRequest and making the request to the service. Here's my service code: Interface: [ServiceContract(Namespace = "http://test.mydomain.com")] public interface ITest { [WebInvoke(UriTe...

ASP.NET MVC persistent data and code organization

I'm giving MVC another shot, and I feel like I'm learning freakin' HTML all over again. So, stupid question: At the top of my master page, I've got a partial view (or similar - I'm using the string template view engine and so far I love it) which either displays a small login form (similar to what NewEgg has), or a message like You are...

http post with vb 9.0 (2008)

Im coding in vb.net, and I havent in forever so im a little rusty now. Question is, I want to beable to post data to a website, it can be anything as long as it can call the url (without being in a browser). a url like http://website.com/login.php?username=USERNAME&password=PASS&rememberme=1 ...

How to display posted XML data in ASP.Net

I am trying to setup a test page that will display an XML Post from a gateway but can not find any examples of how to do this. Every example I have seen has been posting information FROM a page or reading an XML FILE but nothing relating to dispalying a (I think its called) xml stream that is posted to a page? The idea is this: User sub...

"Session expired" and "Please enable cookies" warnings when POSTing website form through cURL

I have been developing a program that is able to login to AWeber.com, and perform mass imports of data. The script uses the PHP cURL libraries, along with their CookieJar settings to spoof a normal user with a browser. The script works perfectly, allowing login, and the changing of lists, but when it comes to posting the form data (in t...

asp.net mvc tutorial of how to http post an xml file sought

I have been trying to find some step by step guidance on how to take a user's inputs (e.g.) name address, etc) via the view, to write that to xml, and then to submit that set of data to a third party interface (e.g UK Companies house xml gateway) I have some aspects in hand (i.e. GET side of view to collect the data), but can't seem to ...