aspose file tools*
The moose likes Servlets and the fly likes how many ways ,we can send request to server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how many ways ,we can send request to server" Watch "how many ways ,we can send request to server" New topic
Author

how many ways ,we can send request to server

ramchander yshetti
Ranch Hand

Joined: Apr 22, 2006
Posts: 97
hai,
i request you to give answers to the questions.


->if we use doGet(...) how the request to sended to server

->if we use doPost(...) how the request to sended ..

->if we use service(...) how the request to sended ..

->can we see how the request is transfered to server..

bye
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
You have it the wrong way around: If a request is a GET, then doGet is invoked, and if it is a POST, then doPost is invoked. The service method contains the code to differentiate between the two, and dispatch a request to the appropriate doXXX method.

If you use Firefox, check out the excellent LiveHTTPHeaders extension. It lets you view in detail what is sent to the server, and what is received back, including parameters, error codes, etc.

By the way, why are you sticking your tongue out at us?
[ July 06, 2006: Message edited by: Ulf Dittmer ]

Ping & DNS - updated with new look and Ping home screen widget
 
Consider Paul's rocket mass heater.
 
subject: how many ways ,we can send request to server
 
Similar Threads
can I read data from a USB port with j2me??
reading from TCP socket problem
strange results
Need Help
HEAD, PUT, DELETE HTTP methods