@ Override public HttpResponse execute ( ) throws IOException { if ( this . method == HttpMethod . GET ) { String url = this . toString ( ) ; if ( url . length ( ) > this . cutoff ) { if ( log . isLoggable ( Level . FINER ) ) log . finer ( "URL length " + url . length ( ) + " too long, converting GET to POST: " + url ) ; String rebase = this . baseURL + "?method=GET" ; return this . execute ( HttpMethod . POST , rebase ) ; } } return super . execute ( ) ; }
Replace excessively - long GET requests with a POST .