You Are Here:

Community: Developer Discussion Boards

#1 Old POST parameter sending client - server - 2006-08-01, 14:21

Join Date: Aug 2006
Posts: 1
Ville_Nordberg
Offline
Registered User
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia