On Mon, 2004-02-02 at 14:51, Richard Miller wrote: > I am trying to write a PHP app that will download content from the Wall > Street Journal online (wsj.com) and make it available as RSS. They > themselves don't offer RSS news feeds and I couldn't find a feed for > them anywhere. > > The problem, however, is that their home page (wsj.com) redirects > itself to other pages for authenticating and then redirects back to the > home page (http://online.wsj.com/home/us). I also need to send a > cookie to authenticate. > > I can do all of this with curl: > > curl -L -O -b "WSJIE_LOGIN=blahblahblah" http://online.wsj.com/home/us > > The -b tag allows the cookie and the -L tag follows redirects. > > However, I would like to do this in PHP. It seems like using PHP's > curl would be inefficient. Can I send a cookie and use fopen()?
How about http://us2.php.net/manual/en/ref.curl.php? Michael > > Thanks, > Richard > > > ____________________ > BYU Unix Users Group > http://uug.byu.edu/ > ___________________________________________________________________ > List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list -- Michael L Torrie <[EMAIL PROTECTED]> ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
