curl -d "user=user1&pass=abcd" -X POST https://example.com/login
# dont forget the content type, else it will throw an error
curl -X POST -H "Content-Type: application/json"
-d '{"username":"abc","password":"abc"}'
https://api.example.com/v2/login
curl -X POST -d "param1=value1¶m2=value2" https://example.com/post
curl --data '' https://example.com/resource.cgi
curl -X POST https://example.com/resource.cgi
curl --request POST https://example.com/resource.cgi
curl -d "@data.txt" -X POST http://localhost:3000/data
curl -H "Content-Type: application/json" -d "@data.json" -X POST http://localhost:3000/data
curl -d "user=user1&pass=abcd" https://example.com/login
curl -d "" https://example.com
curl -H "Content-Type: application/json" --data "@C:UsersxxxDesktopody.json" https://example.com/api/service
curl-X POST http://localhost:8080/api/guests -H 'Content-Type: application/json' -d '{"lastName":"Zithi", "firstName":"Ans"}'
-H header content
-d json payload/data
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://hostname/resource
Code Example |
---|
Shell :: get repository url git cil |
Shell :: open pdf command line linux |
Shell :: install git on linux |
Shell :: substring in shell script |
Shell :: ubuntu start pycharm |
Shell :: docker execute command in container |
Shell :: npm install less-loader |
Shell :: linux && |
Shell :: grep count lines |
Shell :: default pull settings git |
Shell :: gif to webm ffmpeg |
Shell :: sudo add permissions to user |
Shell :: manjaro nvidia driver |
Shell :: uninstall multipass |
Shell :: Push existing folder ghithub / gitLab |
Shell :: whoami linux |
Shell :: vscode tab not working |
Shell :: sudo tee trick |
Shell :: bash delete files with names from subfolder |
Shell :: kubectl port forward |
Shell :: error TS1056 |
Shell :: git Already up to date. |
Shell :: wsl windows directory |
Shell :: choco installation |
Shell :: add local repository to remote |
Shell :: ubuntu cmd time |
Shell :: color logging python |
Shell :: how to install pycharm on ubuntu |
Shell :: git last commit change author |
Shell :: specific branch clone git |