Skip to content

Instantly share code, notes, and snippets.

@funkyfisch
Created February 13, 2021 22:16
Show Gist options
  • Save funkyfisch/d6977cf053164d7a33614a4e31025b4b to your computer and use it in GitHub Desktop.
Save funkyfisch/d6977cf053164d7a33614a4e31025b4b to your computer and use it in GitHub Desktop.
Storing readable requests in text files and consuming them with curl
#!/bin/bash
curl $(tr --delete '\n' < sample-request.txt) -o response.html
www.some-open-api.com/
?param1=value1
&param2=value2
&param3=value3
&param4=value4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment