Fork me on GitHub
#babashka
<
2021-10-20
>
Benjamin14:10:28

hi what is the equivalent of curl -d with babashka.curl? The content type is application/x-www-form-urlencoded if that helps

borkdude14:10:14

I believe this is {:form-params {"foo" "bar"}}

borkdude14:10:34

$ bb -e '(:command (babashka.curl/post "" {:form-params {"name" "Michiel"} :debug true}))'
["curl" "--show-error" "--location" "--dump-header" "/var/folders/2m/h3cvrr1x4296p315vbk7m32c0000gp/T/babashka.curl6428738332076296549.headers" "--compressed" "--silent" "--request" "POST" "--data" "name=Michiel" ""]

Benjamin14:10:35

thanks that was it

borkdude14:10:21

awesome. I'm going to think about your fs/match proposal btw

heow21:10:11

Hey congratulations on the CLJS podcast! https://pca.st/episode/9649b8a5-931e-4624-96c1-6a7088a8834e

❤️ 2
mmz11:10:03

Enjoyed listening to it! Thanks for sharing 🙂