문제

Is it possible to get hold of the actual query string that will be used for a HttpClient request (HttpPost, HttpGet etc.) either prior to or after calling client.execute(request)?

I'd like to do this because my request is failing and I want to debug the actual query string that's being used (it's an S3 file upload using HttpPost, so the parameters are complex).

도움이 되었습니까?

해결책

Not sure if you've tried it, but the HTTP Client library has some logging settings you can enable.

http://hc.apache.org/httpcomponents-client-4.3.x/logging.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top