astaxie / bat

Go implement CLI, cURL-like tool for humans
Apache License 2.0
2.55k stars 220 forks source link

GET request with parameters #13

Closed vintorez closed 9 years ago

vintorez commented 9 years ago

I tried to send a GET request with parameters, as in your example.

$ bat GET www.google.com search=bat tbm=isch

But actually I had the following request:

GET / HTTP/1.1

It seems that the request body is empty. This "params" variable is always empty for me (map[]) https://github.com/astaxie/bat/blob/master/httplib/httplib.go#L355 Am I doing something wrong?

astaxie commented 9 years ago

@Vintorez please update the bat, it's a bug.

vintorez commented 9 years ago

@astaxie thanks for the quick reply! And thanks for the bat! )