title: Cronjob with password protected site (.htaccess)
body: <p>I want to create a cronjob that every X time goes to open a webpage.</p>
  
  <p>This webpage is password protected by .htaccess (user=admin, passwor=pass). The instruction I give is the following:</p>
  
  <pre><code>wget --user=admin --password='pass' http://www.mywebsite.com/test.php
  </code></pre>
  
  <p>But cron gives me the following error:</p>
  
  <pre><code>--2012-05-02 10:14:01--  http://www.mywebsite.com/test.php
  Resolving www.mywebsite.com... IP
  Connecting to www.mywebsite.com|IP|:80... connected.
  HTTP request sent, awaiting response... 401 Authorization Required
  Reusing existing connection to www.mywebsite.com:80.
  HTTP request sent, awaiting response... 403 Forbidden
  2012-05-02 10:14:01 ERROR 403: Forbidden.
  </code></pre>
  
  <p>I have also tried doing:</p>
  
  <pre><code>wget admin:pass@http://www.mywebsite.com/test.php
  </code></pre>
  
  <p>but with similar errors. How can I solve? Thank you in advance for your help.</p>