bat icon indicating copy to clipboard operation
bat copied to clipboard

Form value contains ":" be ignored

Open abo opened this issue 9 years ago • 2 comments

$ bat -v -f POST https://api.weibo.com/oauth2/access_token redirect_uri=http://127.0.0.1/project/oauth/callback

the redirect_uri did not sent to server

abo avatar Jul 22 '16 13:07 abo

It's even worse, it doesn't work at all. Example:

$ bat -f POST http://10.0.0.109:8000/user/admin/webmention source=http://10.0.0.109:9000/twt/np4cvdq target=http://10.0.0.109:8000/user/admin/twtxt.txt
2022/01/23 10:28:24.183633 bat.go:215: can't get the url Post "http://10.0.0.109:8000/user/admin/webmention": net/http: invalid header field name "target=http"

prologic avatar Jan 23 '22 00:01 prologic

#69 fixes this though. If the author doesn't merge some fixes soon, I'll publish my own fork of this nice tool

prologic avatar Jan 23 '22 00:01 prologic