Grabing a file from a remote source (auth required)
Posted: Tue May 08, 2007 4:30 am
Hello everyone,
I'm trying to create an iGoogle gadget which will grab an XML file and output something besed on its contents. The problem I'm having is that in order to get the XML file, authentication is required.
The url is something like this:
https://www.website.com/login.php?user= ... ?id=123456
When you go to that url with a browser the server will authenticate you and redirect you to https://www.website.com/xmlgenerator.php?id=123456 which outputs the XML file I need.
Any idea if it's possible to do this using PHP?
Thank you in advance.
I'm trying to create an iGoogle gadget which will grab an XML file and output something besed on its contents. The problem I'm having is that in order to get the XML file, authentication is required.
The url is something like this:
https://www.website.com/login.php?user= ... ?id=123456
When you go to that url with a browser the server will authenticate you and redirect you to https://www.website.com/xmlgenerator.php?id=123456 which outputs the XML file I need.
Any idea if it's possible to do this using PHP?
Thank you in advance.