Jump to content

Grabing a file from a remote source (auth required)


avataru

Recommended Posts

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=myusername&pass=mypassword&login=Login&Check=OK&t=/xmlgenerator.php?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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.