Skip to content
Advertisement

Tag: google-http-client

Using google-http-client and google-http-client-apache-v2 behind a proxy produces NonRepeatableRequestException

I’m using google-http-client and google-http-client-apache-v2 libraries to make a POST request behind a proxy. That request produces a NonRepeatableRequestException: It seems like ApacheHttpRequest wraps ByteArrayContent that is repeatable (see JavaDoc) inside a ContentEntity that is non-repeatable. Debuging execution inside google libraries, proxy is returning “407 Proxy Authentication Required”, then it tries to repeat the request (guess that including the credentials)

Advertisement