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? Link to comment https://forums.phpfreaks.com/topic/162449-solved-authentication/ 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:[email protected]/folder/file Link to comment https://forums.phpfreaks.com/topic/162449-solved-authentication/#findComment-857464 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? Link to comment https://forums.phpfreaks.com/topic/162449-solved-authentication/#findComment-857467 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 Link to comment https://forums.phpfreaks.com/topic/162449-solved-authentication/#findComment-857469 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.