-
Notifications
You must be signed in to change notification settings - Fork 120
Printing HttpRequests? #93
Comments
Hi, As you've noticed, the
|
I faced a similar need a couple days ago and would be willing to try and make a patch for this. |
That would be great. I think challenge is that this library is just a wrapper around |
Hi folks, is this issue fixed now? |
Hi any updates? Or any work-around for printing just the URL with all the parameters added in? That would satisfy 90% of my debugging items, the headers aren't as essential. |
Hi, as scalaj-http is using HttpUrlConnection under the hood, it's possible to enable logs for HttpUrlConnection and see what is being sent over the wire. This link in stack overflow has a good explanation on how to enable it: Hope it helps |
Is there any way to print the full
HttpRequest
for the sake of debugging? I'm trying to figure out why a request that I have that works fine in curl doesn't work in scalaj-http. In particular, I wanted to see what headers etc scalaj adds so I can compare with my verbose curl output.In an old issue I see that you've used the
asString
method. But this appears to be pre-v2, and now when you callasString
, in addition to executing, it prints something a lot less helpful. In my case:HttpRequest(http://www.myurl.org,POST,<function2>,List(),List((User-Agent,scalaj-http/1.0), (Host,www.myurl.org), (Accept,*/*), (Cache-Control,no-cache), (Content-Type,application/json)),List(<function1>, <function1>, <function1>),None,UTF-8,4096,<function1>,true)
Any tips for coaxing out the full request?
The text was updated successfully, but these errors were encountered: