Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

headers

  • 08-07-2002 1:18pm
    #1
    Closed Accounts Posts: 22


    Hello all

    Can anyone tell me why the following wont work or point me in the right direction ... basically i want to get into a protected folder

    header("Location: http://user:pass@www.protected.com");

    if i just type http://user:pass@www.protected.com
    in the browser window it works fine but in the header it asks for the user and pass again

    Thanks a million

    Al


Comments

  • Closed Accounts Posts: 22 alfoxy


    that being username,:,password not a smiley face :p


  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    I assume this is PHP, and I assume you're not using the little vB "[url]" tags around the url? :)

    [/url]
    header("Location: http://user:pass@url.com");
    

    Should work fine. What happens when you try that?


  • Closed Accounts Posts: 22 alfoxy


    Yes php sorry bout that

    yes your code is exactly what ive got except it still pops up the box asking for the username and password. The properties of the page say its the correct page with user and pass in. If i copy and paste straight into the browser it works fine .... any ideas ?

    Thanks
    Al


  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    I just did a quick test there, Opera (6.03) warned me that I'm being redirected to a page with a username/password but it continued and let me in, IE (5.00) went ahead and it worked fine. What browser are you trying it in?


  • Closed Accounts Posts: 22 alfoxy


    IE (5.0) ... you tried it with a protected folder of your own and it bypassed the popup ? wierd ! I'll keep trying thanks for the help. If you have any ideas what im doing wrong or suggestions please post a reply because ive been trying to get this to work for ages and ages

    p.s. love the pic of hobbes !


  • Advertisement
  • Closed Accounts Posts: 22 alfoxy


    the folder im tryin to get into is cp.logicimage.com
    would that make any difference ?? ie its not a www.

    Thanks
    Al


  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    Nah that won't make any difference.

    Try this page: http://sleepygeek.org/~phaxx/pwdtest.php

    That should redirect you to http://sleepygeek.org/~phaxx/pwdtest with the username and password (testuser, testpass)

    It works perfectly here in Opera and IE, no password dialog box. Does it do the same for you?

    (Yup, I like the Hobbes avatar too. :))


  • Closed Accounts Posts: 22 alfoxy


    Thats cool except your password thingy aint workin. i can log straight in to http://sleepygeek.org/~phaxx/pwdtest and see hello with out going to your other script first

    Al


Advertisement