|
|
Re: FTP gaming... |
Wed, 21 November 2012 07:00 |
|
XAPBob | | Lt. Commander | Messages: 957
Registered: August 2012 | |
|
Ah - I've spotted where links was running into difficulty - it doesn't like file references which start ~/
So I'm back to using http, but more easily. I might wrap the upload into a direct curl request - seeing as that isn't game specific...
Looks like:
curl -F password=<UPLOADPASSWORD> -F upload=@<GAMENAME>.x10 http://starsautohost.org/upload.htm
should do the job - just edit those bits in <>
I shall try it next turn...
Actually - is there a a "test" game anywhere?
That would be rather useful...
[Updated on: Wed, 21 November 2012 07:48] Report message to a moderator
|
|
|
Re: FTP gaming... |
Wed, 21 November 2012 09:27 |
|
XAPBob | | Lt. Commander | Messages: 957
Registered: August 2012 | |
|
As an example I'm spoofing player 17...
My password is also not #### (D'uh)
Upload:
curl -F filename=@lowtek.x17 -F password=#### http://starsautohost.org/cgi-bin/upload.pl
Download:
curl -F password=#### http://starsautohost.org/cgi-bin/downloadturn.php?file=lowtek.m17 > lowtek.m17
Check:
links -dump http://starsautohost.org/games/lowtek.htm
This prints out a ascii art style table of turns, easily readable
PS - Err, why is the code tag making things invisible? Is it due to a default white colour f text, and a white background on the code tag? I've encapsulated them with colour tags...
PS - Err why have the #### I used in lieue of a password been replaced with a rude word for editting?
[Updated on: Wed, 21 November 2012 16:35] Report message to a moderator
|
|
|