aspose file tools*
The moose likes Java Micro Edition and the fly likes HTTP request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "HTTP request " Watch "HTTP request " New topic
Author

HTTP request

Sanjay Mistry
Greenhorn

Joined: Jun 22, 2001
Posts: 24
As documents says, I can make HTTP request using J2ME app and talk to Servlet/CGI on web server.
But how does the web server sends the response back ? I mean,
does this J2ME phones have some sort of IP address or something else to be identified uniquely ?
Eric Giguere
Ranch Hand

Joined: Oct 25, 2000
Posts: 170
Remember that there is a gateway sitting between the phone and the Internet. Any HTTP requests that are sent to a web server will come to the web server via the gateway, so to the web server it's really replying to the gateway. The gateway then sends the response back to the phone. That said, some phones can indeed be configured to have an IP address. However, all of that is transparent to your application -- all you know and care about is that you can make an HTTP request and receive a response.
------------------
Eric Giguere
author of:
Java 2 Micro Edition : A Professional Developer's Guide
PalmTM Database Programming: The Complete Developer's Guide


Eric Giguere
Author/Co-Author of: Mobile Information Device Profile for Java 2 Micro Edition: Professional Developer's Guide, Java 2 Micro Edition: Professional Developer's Guide and PalmTM Database Programming: The Complete Developer's Guide
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP request