Re: Cannot get POST to work

2009-09-30 Thread Piet van Oostrum
> "tedpot...@gmail.com" (t) wrote: >t> Hi, >t> I'm trying to post data to a short test script in php I wrote. >t> The python code to do the post is >t> import httplib >t> #server address >t> conn = httplib.HTTPConnection("localhost") headers = {"Content-type": "application/x-www-form-urlenc

Re: Cannot get POST to work

2009-09-29 Thread Falcolas
On Sep 29, 10:24 am, "tedpot...@gmail.com" wrote: > Hi, > I'm trying to post data to a short test script in php I wrote. > The python code to do the post is > import httplib > > #server address > conn = httplib.HTTPConnection("localhost") > > #file location > conn.request("POST", "/programming/bot

Cannot get POST to work

2009-09-29 Thread tedpot...@gmail.com
Hi, I'm trying to post data to a short test script in php I wrote. The python code to do the post is import httplib #server address conn = httplib.HTTPConnection("localhost") #file location conn.request("POST", "/programming/bots/test.php","&ted=fred") r1 = conn.getresponse() print r1.status, r1.