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

Do cron jobs support http basic auth

Options
  • 19-04-2015 10:21am
    #1
    Moderators Posts: 6,860 ✭✭✭


    Hello

    I have a cron job setup in a shared hosting account (Linux Minimus) like so:

    [font=Tahoma, Geneva, sans-serif]/usr/bin/wget http://<username>:<password>@www.website.ie/admin/send_email.php[/font]


    [font=Tahoma, Geneva, sans-serif]- the admin directory has http basic auth (using a .htaccess file) but the job doesn't run - I can call the same url externally and I receive the mail no problem.[/font]


    [font=Tahoma, Geneva, sans-serif]I also tried setting it up as a Scheduled Application, but must supply the login credentials in the fields, not the URL - How are the 'username' and 'password' passed in the URL when it's a 'Scheduled Application'?[/font]


    [font=Tahoma, Geneva, sans-serif]Thanks[/font]


Comments

Advertisement