Quote:
|
Originally Posted by Arevos
Maybe try changing wpSave from 1 to "Save page"?
|
I think I tried that and some other variations. I can't remember.
Quote:
|
Originally Posted by Cerulean
A good tip if you use Firefox is to use the live HTTP headers extension so you can see exactly what POST data and headers are being sent to each page, so you can copy the full string and manipulate the bits as need be.
|
That's a nice extension, thanks, but I don't think it shows anything that isn't in the source page. The headers tab in the view page info box doesn't work, and there's reference to a non existant file that it wants me to find called nsHeadersInfo.js. Maybe it's something to look for another time. I'm new to this complex stuff (which should be easy I think: just a simple form submit), so I might be missing something.
I might have to go back to square one on this. I have some links that I'll give a look to when i get the chance:
http://effbot.org/librarybook/httplib.htm
might be a new way to approach this in there, by putting different headers in etc.
http://comments.gmane.org/gmane.scie...echnical/21150
Quote:
|
If you're referring to offsite form submissions automated with JavaScript, we already have protection in place to prevent this for registered users.
|
This seems irrelevant to me, as Javascript is not involved AFAIK. However, I'll not rule out the possiblity that I'm getting 403's because they don't want automated edits.
Incidentally, I tried subnitting the
Login form with python, but with no luck. the follwing code in a HTML file and opened in FF allows me to login. However, a similar code to submit the edit page form (which I can't seem to recreate) didn't work.
<form name="userlogin" method="post" action="http://en.wikipedia.org/w/index.php?title=Special:Userlogin&action=submitlogin&type=login">
<table>
<tr>
<td align='right'><label for='wpName1'>Username:</label></td>
<td align='left'>
<input type='text' class='loginText' name="wpName" id="wpName1"
value="Steveire" size='20' />
</td>
</tr>
<tr>
<td align='right'><label for='wpPassword1'>Password:</label></td>
<td align='left'>
<input type='password' class='loginPassword' name="wpPassword" id="wpPassword1"
value="" size='20' />
</td>
</tr>
<tr>
<td></td>
<td align='left' style="white-space:nowrap">
<input type='submit' name="wpLoginattempt" id="wpLoginattempt" value="Log in" /> <input type='submit' name="wpMailmypassword" id="wpMailmypassword"
value="E-mail new password" />
</td>
</tr>
</table>
</form>
Once again, I'm stumped.
Have you ever tried to do this in python
or any other language. I never imagined a few batch operations would proove so difficult if you try to involve the internet... :/