I've been searching high and low for anyone that can help me figure this out.
I need to use Linux to send data to a webpage.
I thought I could use curl, create a cookie, authenticate, then in another command use curl to send authenticate cookie & post the data.
curl -c cookietemp -v --trace-ascii tracetemp --ntlm -u username:password http://site/path/login.asp
But this command is not working at all. It says I'm not authorized.
So, I thought I'd try sending the credentials through a -d or -F format with the names of the fields that the authentication form is using.
curl -c cookietemp -v --trace-ascii tracetemp -d "txtOperator=username&txtPassword=password" http://site/path/login.asp
That didn't work either so I thought it needed the submit button
curl -c cookietemp -v --trace-ascii tracetemp -d "txtOperator=username&txtPassword=password&btnSubmit=Submit" http://site/path/login.asp
I've never had so much trouble with a curl command before. I've used it for lots of things...
Any help would be greatly appreciated.