HttpURLConnection.setRequestMethod
Class Overview | Class Members | 
  This Package | 
All Packages
 public void setRequestMethod( String method ) throws ProtocolException
Description
 Set the method for the URL request, one of:
 
  - GET
  
- POST
  
- HEAD
  
- OPTIONS
  
- PUT
  
- DELETE
  
- TRACE
 
are legal, subject to protocol restrictions.  The default
 method is GET.
  
Exceptions
 ProtocolException
     if the method cannot be reset or if
              the requested method isn't valid for HTTP.