| Reply | « Previous Thread | Next Thread » |
|
Hi.
I'm trying to send info with POST request, just like tutorial in www.mobilenin.com says. The problem is that it seems like the server doesn't get those parameters. I tried to test them with if(isset($_POST['parameter']) ) but the program never enters this. Does someone know solve to this program? Here's a bit of my code: f = httplib.HTTPConnection("URL") params = urllib.urlencode({'id': 2}) headers = { "Content-type": "text/html" } f.request("POST", "the php", params, headers) appuifw.note(u"Connection established, fetching info...", "info") answer = f.getresponse() data2 = answer.read() data2 = str(data2) print data2 f.close() Thanks in advance ![]() Added 2.8.2006: Debugging shows that POST request is sent and all should be ok. Added 7.8.2006: After debugging while, noticed that php gets parameters through $HTTP_RAW_POST_DATA not through $_POST ... interesting...
Last edited by Ville_Nordberg : 2006-08-07 at 14:13.
|
| Ville_Nordberg |
| View Public Profile |
| Find all posts by Ville_Nordberg |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Problems with socket connection between client and server | Al_KaRaJo | Mobile Java Networking & Messaging & Security | 4 | 2006-11-15 19:28 |
| client server connection problem | jeff4yee | Symbian Networking & Messaging | 2 | 2006-09-28 12:11 |
| Bluetooth client problem on games! | wmchan78 | Mobile Java Networking & Messaging & Security | 6 | 2006-03-22 07:15 |
| Server cancels request but client get KErrServerTerminated | olivier_randria | General Symbian C++ | 2 | 2005-09-20 13:43 |
| Destructor of Server in Server / Client | kovacc | General Symbian C++ | 1 | 2002-10-09 08:17 |