You Are Here:

Community: Developer Discussion Boards

#1 Old Nokia 7650 http connection workaround - 2002-10-08, 11:54

Join Date: Mar 2003
Posts: 8
lesliel
Offline
Registered User
Hi!

there is a workaround for sending / receiving data through http communication. the phone will always send a get request with an empty body. however if you set your gateway to 0.0.0.0 you can send some informations in the http header like:

if(System.getProperty("microedition.platform").startsWith(Nokia7650))
conn.setRequestProperty("Input", request.replace('\n', ''));

(the value should not contain new line characters!).
the server shound handle the get and post request in the same way.

lesliel
Reply With Quote

#2 Old RE: Nokia 7650 http connection workaround - 2002-10-08, 14:21

Join Date: Mar 2003
Posts: 8
lesliel
Offline
Registered User
it's a String

see the doSend() method from the HttpPoster class from
Nokia_MIDP_Example_Apps_v0_9_3.zip
Reply With Quote

#3 Old RE: Nokia 7650 http connection workaround - 2002-10-23, 10:53

Join Date: Mar 2003
Posts: 30
coolazmi
Offline
Registered User
There is no need to write anything in the header you can do both gets and posts. HttpConnection works fine(is fully functional) on the Nokia 7650. Try downloading "Coolaz Comics Nokia 7650 v.1.0.4" from http://www.midletcentral.com under the applications category. Futhermore all applications by this vendor targeted for the 7650 work with HttpConnections both with the old and new firmware.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

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