mapleleaf Posted June 16, 2009 Share Posted June 16, 2009 I have a url that has an xml document that I want to download or parse. The url requires authentcation(id and password). How do I authenticate automatically with php? Quote Link to comment Share on other sites More sharing options...
ldougherty Posted June 16, 2009 Share Posted June 16, 2009 Do you mean it is a password protected folder? If so you can pass the information via URL such as http://login:password@siteaddress.com/folder/file Quote Link to comment Share on other sites More sharing options...
mapleleaf Posted June 16, 2009 Author Share Posted June 16, 2009 It is a protected file and I will need to send the id and password somehow. If i go to the url directly in my browser that window drops down asking for the id and password. Is that any clearer? Quote Link to comment Share on other sites More sharing options...
mapleleaf Posted June 16, 2009 Author Share Posted June 16, 2009 ldougherty you were right. I hadn't understood your url immediately. THANKS A LOT Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.