Created
          February 13, 2021 22:16 
        
      - 
      
- 
        Save funkyfisch/d6977cf053164d7a33614a4e31025b4b to your computer and use it in GitHub Desktop. 
    Storing readable requests in text files and consuming them with curl
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| curl $(tr --delete '\n' < sample-request.txt) -o response.html | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | www.some-open-api.com/ | |
| ?param1=value1 | |
| ¶m2=value2 | |
| ¶m3=value3 | |
| ¶m4=value4 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment