NationStates Jolt Archive


Automated login problem

Ballotonia
09-09-2007, 21:53
Hiya! My auto-login script used to work using the string:
logging_in=1&nation=ballotonia&password=PASSWORD

Now it no longer does, and returns an error instead:
"No nation sent to check_password at /home/nation/public_html/cgi-bin/index.cgi line 393."

Any suggestion on how to get it working again? I see no difference in the HTML.

Ballotonia
Pythagosaurus
10-09-2007, 03:35
Got something against cookies?
Ballotonia
10-09-2007, 13:05
Got something against cookies?

I can log into NS without problem using Firefox, but using the above login string in Firefox already gives that error.

My scripting language doesn't do cookies though. Thing is, I don't care about maintaining the login, just logging in itself. That used to work.

Ballotonia
Pythagosaurus
10-09-2007, 17:46
Get a better scripting language? Perl's LWP can do it, as can wget. If all else fails, HTTP is trivial, and the cookie is just a line in the header; you can talk to the socket directly.

Anyway, if you can log in normally but not when using your script, then you're doing something different. It shouldn't be hard to find out what that is if you're capable of writing such a script in the first place. I'm not going to read the HTML for you.