Page 1 of 1

Authenticating a user without filling up a web form??? Help

Posted: Tue Jun 28, 2005 8:29 am
by shortcut
Hi there!

I need to get access to a page in a site from my script to grab its content but the page is in a protected area, I mean, you have to log in first and then go there by using a menu. There is no copyright concern and I have a user account to do that.My problem is to use my username and pswrd to grab the content without logging in through the web form.Any idea?? Or is there any other way to do that?Please help me.Sorry I'm new in the php world.

Thanks in advance

Shortcut

Posted: Tue Jun 28, 2005 8:56 am
by Chris Corbyn
What is it you are trying to "grab"? Who owns the website? Is there any reason you need PHP to "grab" this data?

cURL might be of some help but I hope you have permission for whever you are trying to do.

Posted: Tue Jun 28, 2005 11:48 am
by shortcut
Hi!

Of course I have permission to do that.Actually I could do it without grabbing the data from external page but it is gonna take a lot of work.It is about a soccer league and I want the fixtures page just to get the matches of a given date to show them on other page.Just like that.Since I have this account and everything is already set, there is no point in setting it again.

thanks

shortcut

Posted: Tue Jun 28, 2005 12:20 pm
by Chris Corbyn
Just because you have access to something doesn't mean you're allowed to copy/harvest from it.

You first need to ask them if it's OK to do this... since you need an account I'm not sure they'd appreciate account holders harvesting information using PHP scripts... I'm not kidding, it's dodgey ground.

Anyway, like I say... look into cURL... it's can handle logins etc...

http://www.php.net/curl