Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Do cron jobs support http basic auth

  • 19-04-2015 09:21AM
    #1
    Moderators Posts: 6,952 ✭✭✭


    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

  • Registered Users, Registered Users 2 Posts: 7,742 ✭✭✭mneylon


    Please contact our helpdesk directly and they might be able to assist: https://www.blacknight.com/support.html


  • Moderators Posts: 6,952 ✭✭✭Spocker


    Got my answer from the helpful support team :)

    Wget is disabled, I was directed to use cURL instead, which worked for me - thanks!


  • Registered Users, Registered Users 2 Posts: 7,742 ✭✭✭mneylon


    Glad to hear they were able to assist you

    I *think* we had to disable access to wget due to security issues 


Advertisement