Navigation

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

    Fetch equivalent to wget

    Off-Topic & Non-Support Discussion
    2
    3
    5028
    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
      • jimp
        jimp Rebel Alliance Developer Netgate last edited by

        Should be:

        fetch -qo - https://username:pass@updates.opendns.com/nic/update
        
        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

          Products

          • Platform Overview
          • TNSR
          • pfSense
          • Appliances

          Services

          • Training
          • Professional Services

          Support

          • Subscription Plans
          • Contact Support
          • Product Lifecycle
          • Documentation

          News

          • Media Coverage
          • Press
          • Events

          Resources

          • Blog
          • FAQ
          • Find a Partner
          • Resource Library
          • Security Information

          Company

          • About Us
          • Careers
          • Partners
          • Contact Us
          • Legal
          Our Mission

          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

          Subscribe to our Newsletter

          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

          © 2021 Rubicon Communications, LLC | Privacy Policy