httpservices/src/main/java/ucar/httpservices/HTTPMethod.java
public int execute()
            throws HTTPException
    {
        HttpResponse res = executeRaw();
        if(res != null)
            return res.getStatusLine().getStatusCode();
        else
            throw new HTTPException("HTTPMethod.execute: null response");
    }
public int execute()
            throws HTTPException
    {
        HttpResponse res = executeRaw();
        if(res != null)
            return res.getStatusLine().getStatusCode();
        else
            throw new HTTPException("HTTPMethod.execute: null response");
    }
public int execute ( ) throws HTTPException { HttpResponse res = executeRaw ( ) ; if ( res != null ) return res . getStatusLine ( ) . getStatusCode ( ) ; else throw new HTTPException ( "HTTPMethod.execute: null response" ) ; }
Create a request, add headers, and content,
then send to HTTPSession to do the bulk of the work.

@return statuscode
Create a request add headers and content then send to HTTPSession to do the bulk of the work .