HTTPChannel - beginPostForm - postForm syntax

Hi there,

Are there any examples around on how to format the form data on these methods of the httpchannel object? Can’t seem to get it to work…


This is a web question, not really a Panda question. The data that you pass to beginPostForm() is sent verbatim to the URL you specify, so the answer really depends on what the server is expecting.

Most web pages expect to receive data either in application/x-www-form-urlencoded or multipart/form-data convention, which can both be found via a quick Google search. In a nutshell, x-www-form-urlencoded means that the response is a string of the form “field1=value&field2=value” and so on.


Thanks, that did the trick.

Indeed it doesn’t have anything to do with panda, i was formatting the string as actual html before.

Starting to like panda :slight_smile: