http - Login and post using curl in one command -


i configuring solar device on field runs small web server upload data web service.

however web service needs have authentication , ssl. there way configure upload url endpoint not way save headers file etc.

is possible login pass headers next request , post data in 1 request?

something

curl -d "email=sadf@yahoo.com&password=asds&submit=login" --dump-header headers http://localhost:3000/users/login **>** curl -x post http://localhost:3000/test --data-urlencode point="<status>a note</status>" -h 'content-type: application/xml'


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -