Skip to content
Snippets Groups Projects
curlCalls.txt 736 B
Newer Older
  • Learn to ignore specific revisions
  • Alfredo Chissotti's avatar
    Alfredo Chissotti committed
    GET
    
    curl localhost:3000
    
    POST
    
    curl -X POST -H "Content-Type: application/json" -d "{JSON}" localhost:3000
    
    curl -X POST "YOUR_URI" -F 'file=@/file-path.csv'
    
    
    PUT
    
    curl -X PUT -H "Content-Type: application/json" -d "{JSON}" -d "{newJSON}" localhost:3000
    
    curl -X PUT -H "Content-Type: multipart/form-data;" -F "key1=val1" localhost:3000
    
    curl -X PUT -H "Content-Type: application/json" -d "{'email': 'text@mail.com'}" localhost:3000/bulloni?email=linuxize@example.com
    
    
    DELETE
    
    
    curl -X DELETE -d "{JSON}" localhost:3000
    
    curl -X DELETE localhost:3000/bulloni?email=linuxize@example.com 
    	zsh: no matches found: localhost:3000/bulloni?email=linuxize@example.com
    
    
    
    HTTPS
    
    curl --cacert cert.pem -k -H "version: 1.0" https://localhost/