Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Fetch equivalent to wget

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    3 Posts 2 Posters 5.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rountrey
      last edited by

      I just switched over to pfSense from m0n0wall this past weekend and I am definitely seeing the advantages of doing so. But, I am having a problem with fetch. I use OpenDNS for content filtering (my hardware won't handle pfSense's) and I normally update with a wget cron job from a Linux box. I was trying to use fetch with pfSense but for the life of me couldn't figure out the syntax. I was wondering if anyone could help.

      the wget command:

      wget -O - -q –http-user=username --http-passwd=password https://updates.opendns.com/nic/update

      in return i get:
      good my.wan.add.ress#

      I've tried various things with fetch (with HTTP_AUTH) and all I ever got were errors. I am new to the BSD cli, normally using linux but I would really appreciate any help.

      Thanx

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Should be:

        fetch -qo - https://username:pass@updates.opendns.com/nic/update
        

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • R
          rountrey
          last edited by

          Now I feel dumb, I thought I needed HTTP_AUTH somewhere.  Thank you, jimp.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.