|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Marilena,
It isn't much more difficult... The article mentions changing the source to reflect a POST query: Quote:
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 |
|
#3
|
|||
|
|||
|
Im curious, where can I read the article as Im looking into this matter?
|
|
#4
|
||||
|
||||
|
Devarticles: PHP Interacting with J2ME
|
|
#5
|
|||
|
|||
|
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) |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > j2me php interaction |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|