Quote:
Originally Posted by PoleStar
In 'POST' calls input data structures could get pretty large. So I think it will be harder to do it with shell script.
|
Put the data structures in a file, say /home/myself/postdata, and submit them like this:
Code:
curl -X POST -d @/home/myself/postdata 'https://dev.my-company.com/api/data'
You can use any programming language to generate the content of /home/myself/postdata. If you have never used Python, there will be a certain learning curve. Although Python has the reputation of being beginner-friendly, I would first explore how my task can be accomplished with the tools that I know.