NationStates Jolt Archive


Scripting / Frames capable?

Ballotonia
30-03-2004, 19:17
For a while now I've been happily pulling XML feeds and some other pages, just basic data collecting. Since last week or so one particular page requires a nation to log in first before that page is served. And with this, comes my current problem.

My current set-up uses Tcl. When I try to log in, I get an error page stating I need a frames-capable browser to use NationStates. How are other scripters circumventing this?!?

Chopped down version of what I'm doing:
package require http
set query nation=My+Puppet+Nation&password=thepuppetpassword
set URL http://www.nationstates.net/cgi-bin/index.cgi
set useragent "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Ballotonia)"
::http::config -useragent $useragent
set token [::http::geturl $URL -query $query]
::http::wait $token

I've tried several different useragent lines, all with the same result. How is the server determining I don't have a frames-compliant browser?

Ballotonia
SalusaSecondus
31-03-2004, 03:17
package require http
set query nation=My+Puppet+Nation&password=thepuppetpassword&logging_in=1
set URL http://www.nationstates.net/cgi-bin/index.cgi
set useragent "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Ballotonia)"
::http::config -useragent $useragent
set token [::http::geturl $URL -query $query]
::http::wait $token
Ballotonia
31-03-2004, 09:40
Oh duh, overlooked that one. Thanks!

Ballotonia