curl login
I'm trying to login through the command line with curl. It acts like the command runs fine but then doesn't log me in. I'm thinking it's cause it's not remembering me so i tried to pass y in for the checkbox but its still not working. here's what i have. can someone tell me what im doing wrong?
markupcurl -d user_name=styloverte116 -d user_pass=<mypasshere:P> -d remember_me=y www.hellboundhackers.org
ok it still doesn't work.. heres what i have now.
markupcurl -d user_name=styloverte116 -d user_pass=<mypass> -D headers.txt -c cookies.txt www.hellboundhackers.org
and while i'm having problems with this.. does anyone know how i can get unlimited buffering in the command prompt on windows?
EDIT – i found the buffering. its not unlimited but i changed it from 50 to 999
I thought about that but i can't find any information on how to use them. -v doesn't give me any warning so it should be working.
EDIT – i found an option -b to read in cookies from a text file and used curl -b cookies.txt www.hellboundhackers.org after my first command but it still doesn't work
yours31f wrote: What I meant by that is, he would have all his previous cookies and then he wouldn't have to worry about saving them this time.
While on the subject, does anyone have a copy of the libcurl library? My firewall is being a douche and I can't to any download pages for it. Thanks.
Which bind do you need? (What language are you programming in?)
Edit: Oh, just actually read your post.
http://curl.haxx.se/libcurl/bindings.html
Fucking idiot.
MoshBat wrote: I can't seem to get my head around why someone would do that… Really, the method most people use would be much simpler, no?
Yes, the method most people would use is much simpler. Just to clear any questions up, I'm running windows. I don't do a lot of cmd stuff, and have never used curl, and i wanted to get an idea on how to use the command line. i was going to try to do timed 1 from the command prompt. Also, my computer is going too slow. Greasemonkey takes too long with all images disabled, among other things, and hbh in the hosts file and no other programs running and no additional tabs open. I still can't get it to log me in. I couldn't find anything since my last post, so I'm still using the same lines.
i finally figured it out.
i opened livehttpheaders in firefox and checked what was getting posted and there was a login parameter…
so i used
markupcurl -c cookies.txt -D headers.txt -d "user_name=styloverte116&user_pass=<mypasshere>&login=Login" www.hellboundhackers.org
and then i just used the following to access the page:
markupcurl -b cookies.txt www.hellboundhackers.org
Thanks to everyone who helped.