HttpURLConnection.setRequestMethod

HttpURLConnection.setRequestMethod

Class Overview | Class Members | This Package | All Packages

Syntax
public void setRequestMethod( String method ) throws ProtocolException
Description
Set the method for the URL request, one of: 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.