Z
zzyzyxgal
Guest
I've been trying to use curl to access a webpage form. The command I thought would work is:
curl -c cookieTemp -L --trace-ascii traceLog -u username:assword <webpage>
cookieTemp showed 2 of the 4 cookies I would've expected. It didn't have the .aspxauth cookie. In traceLog it looked like was redirected back to the login page.
Then I thought the problem is that I needed ntlm for IIS to work:
curl -c cookieTemp -L --trace-ascii traceLog --ntlm -u username: password <webpage>
This didn't even create cookieTemp. In traceLog it looked like it accessed IIS but wasn't deemed as a valid login. (I know for sure that the username & password are correct.)
I tried sending in the username & password as data with the field names like this:
curl -d txtOperatorID=username&txtPassword=password <webpage>
Does anyone have any ideas that I haven't tried?
Thanks
curl -c cookieTemp -L --trace-ascii traceLog -u username:assword <webpage>
cookieTemp showed 2 of the 4 cookies I would've expected. It didn't have the .aspxauth cookie. In traceLog it looked like was redirected back to the login page.
Then I thought the problem is that I needed ntlm for IIS to work:
curl -c cookieTemp -L --trace-ascii traceLog --ntlm -u username: password <webpage>
This didn't even create cookieTemp. In traceLog it looked like it accessed IIS but wasn't deemed as a valid login. (I know for sure that the username & password are correct.)
I tried sending in the username & password as data with the field names like this:
curl -d txtOperatorID=username&txtPassword=password <webpage>
Does anyone have any ideas that I haven't tried?
Thanks