Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

php - grabbing a page by url (that requires auth)

  • 27-09-2008 09:09PM
    #1
    Closed Accounts Posts: 7,144 ✭✭✭


    I've toyed around with this before and hit a dead end...
    What I'm trying to do is write a php script that'll retrieve a page of html from my router's config interface (for logging and processing stats).

    The only problem is that the page requires authentication (in the form of a pop-up box, which looks like the .htaccess one).
    What I'm not sure how to do is send the username/password with my request.

    Can someone point me in the direction of what functions I should be looking at? :confused:


Comments

Advertisement