"Chris Combs" wrote

1. when not logged in, visit the page you want to pluck; site should prompt you for a username/password.

2. view the source and dissect the form - use your browser's Find function
if you get lost.

f.ex.
<form action='login.php' method='get'>Username:<input type='text'
name='user' size=40>
<br>Password:<input type='password' name='pass'><br>
<input type='submit' value='Log In'></form>

Username textbox is named 'user'. Password textbox is named 'pass'. Whole
mess is sent to login.php.

3. encode the form elements into a URL.

format is filename.bin?name=value&name2=value2&name3=value3 etc.

http://www.mynewssite.com/login.php?user=Bob&pass=1337

4. try encoded URL in a Web browser. (freshly de-cookied, preferably.)
5. if it works, use that as a URL for Plucker.

This will only work with the login page. The login page sends a cookie that must be sent in subsequent requests to access the restricted URLs. If this cookie isn't present you (usually) get redirected to the login page.


Or you could just log in with Mozilla/Netscape/Firebird/etc. and point
JPluck to your cookies.txt.

For an example see: http://jpluck.sourceforge.net/jpluck2/jxl/nytimes.xml

Those who don't use Mozilla/Netscape can install Firebird just for the purpose of logging in and obtaining a cookie. Then point JPluck to the cookies.txt. Alternatively, export the cookies.txt from MSIE, but this is cumbersome.


Regards -Laurens

_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to