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()?

Thanks,
Richard


____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to