I'm trying to convert these sequence of CURL commands into python script. Can someone assist me on this please? There should be function/method for command 3 and 4 below which will accept the parameter as "data" to pass to command 3 below and note to process as query argument in command 4 below(eg. of node in command 4 below: cid=29-0&pid=12&gid=29-0&type=1")
curl --cookie-jar /mydir/cookies.tmp -o dev/null "http://xyz:8080/main/main.faces"
curl --cookie /mydir/cookies.tmp --location --cookie-jar /mydir/cookies.tmp --data "[email protected]&j_password=test" -o /dev/null "http://xyz.com:8080/main/j_sec_check"
curl --cookie /mydir/cookies.tmp --data "cmd=u&rid=5&cid=29-0&pid=12&gid=29-0&type=1&blablblablablablablablblablablablablablblablablablablablblablablabla" "http://xyz.com:8080/main/rest/testrestXML"
curl --cookie /mydir/cookies.tmp "http://xyz.com:8080/main/rest/process?cid=29-0&pid=12&gid=29-0&type=1"