[TriLUG] RSS Feedreader - Protected site

Stephen Roller scroller at ncsu.edu
Wed Oct 18 14:04:44 EDT 2006


> Is this a server based login, or a web form login?
> 
> If it's server based, you should be able to specify the
> username/password on the URL
> 
> http://username:password@wiki.whatever.com/
> 

Extending this idea, since that's apparently not an option, you could
write a quick PHP/ASP.NET/Whatever page that took a username/password in
this manner (using the $_SERVER[PHP_AUTH_USER] and $_SERVER[PHP_AUTH_PW]
variables in PHP), and used the curl library to fake a login to the
wiki, grabbed the appropriate cookie, request the RSS feed, and
destroyed the cookie.  The RSS feed would then be printed out
unmodified.  Then people would just add your little script to their feed
list.




More information about the TriLUG mailing list