Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 8th, 2003, 09:43 AM
hmiz hmiz is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: London
Posts: 2 hmiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to hmiz
Question j2me php interaction

Hi,

I'm writing a MIDlet to connect to a PHP website using HTTP connection and send the data using POST. Does anyone know how? I read the article about this but it only includes GET. Any ideas on how POST may be used or where I could get information or some example code about this?

Thanks

Reply With Quote
  #2  
Old August 15th, 2003, 12:01 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Marilena,

It isn't much more difficult... The article mentions changing the source to reflect a POST query:

Quote:
[Note] The results would be the same if you decided to make a POST call instead of a GET call. Of course, however, both the J2ME and PHP source code would have to be changed accordingly to handle a POST call instead of a GET call. [End Note]


You can simply replace the GET calls with a POST, and change the code that sets the request method from:

connection.setRequestMethod(HttpConnection.GET);

to:

connection.setRequestMethod(HttpConnection.POST);


HTH!
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #3  
Old February 20th, 2005, 11:45 AM
Hpka Hpka is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 Hpka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 19 sec
Reputation Power: 0
Im curious, where can I read the article as Im looking into this matter?

Reply With Quote
  #4  
Old March 8th, 2005, 12:44 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8

Reply With Quote
  #5  
Old April 26th, 2005, 04:24 AM
Daetur Daetur is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Spain
Posts: 2 Daetur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 57 sec
Reputation Power: 0
Rising the post...

How to send that var, "type", with POST? There are no Form-textfield-submit button here, =P (yep, I'm really a newbie)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > j2me php interaction


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT