The getRequestMethod() method returns the string form of the request method currently set for the URLConnection. GET is the default method.
getRequestMethod()