PDA

View Full Version : Getting content from protected area.


enoyhs
10-18-2007, 09:34 AM
Hi!

I would like to know is it possible to get page content from password protected area (page).

I would like to get some text out of page, but that page is password protected (you need to have logged in to see it). I have the password and username to get into page normally, but I want to get same content dynamically.
Is there a way to do this?

mlseim
10-18-2007, 12:54 PM
You need to actually have access to the same data they're using
for their dynamically created site. Perhaps their data is from a database,
another file, etc. You would have to ask them where it's from and get
permission to use it.

Otherwise, what you're wanting to do is not really possible, because the
protected page is not really a web page ... it's a PHP script.

aedrin
10-18-2007, 07:16 PM
You can do this using several methods.

The easiest (as far as I know): PEAR has an HTTP_Request class that you can use to perform authenticated GETs. One of those rare times where PEAR can be useful ;)