<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>cogent free knowledge - Command Line Madness</title>
    <link>http://blog.edogg.com/</link>
    <description>An online compendium of all things that interest me.</description>
    <dc:language>en</dc:language>
    
    <generator>Serendipity 0.9.1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 21 Jul 2004 22:21:27 GMT</pubDate>

    <image>
        <url>http://blog.edogg.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: cogent free knowledge - Command Line Madness - An online compendium of all things that interest me.</title>
        <link>http://blog.edogg.com/</link>
        <width>100</width>
        <height>21</height>
    </image>
<item>
    <title>wget ftp authentication problems</title>
    <link>http://blog.edogg.com/index.php?/archives/18-wget-ftp-authentication-problems.html</link>
<category>Command Line Madness</category>    <comments>http://blog.edogg.com/index.php?/archives/18-wget-ftp-authentication-problems.html#comments</comments>
    <wfw:comment>http://blog.edogg.com/wfwcomment.php?cid=18</wfw:comment>
    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.edogg.com/rss.php?version=2.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    <author>nospam@example.com (JClermont)</author>
    <content:encoded>
I'm a big fan of wget. It saves me a lot of time when moving clients to a new server. Today, I encountered something I never dealt with before. The ftp user had a &quot;@&quot; symbol within it. This posed a problem because wget's ftp user/pass syntax is of the following form:&lt;br /&gt;
  &lt;i&gt;wget ftp://user:pass@domain.com:port/directory&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;
When I inserted the user like this:&lt;br /&gt;
  &lt;i&gt;wget ftp://user@ftpsite.com:pass@domain.com/directory&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;
It stopped at the first '@' symbol and said something like &quot;Host ftpsite.com:pass@domain.com not found&quot;&lt;br /&gt;&lt;br /&gt;
I tried escaping the @ symbol like this:&lt;br /&gt;&lt;i&gt;wget ftp://user&amp;#92;@ftpsite.com:pass@domain.com&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
It didn't work either.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
Next I tried using alternate symbols, like:&lt;br /&gt;
&lt;i&gt;  wget ftp://user%ftpsite.com:pass@domain.com&lt;br /&gt;
  wget ftp://user.ftpsite.com:pass@domain.com&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
Those didn't fare any better.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
Finally, I tried URL encoding the @ using %40&lt;br /&gt;
  &lt;i&gt;wget ftp://user%40ftpsite.com:pass@domain.com&lt;/i&gt;&lt;br /&gt;
 &lt;br /&gt;&lt;br /&gt;
That did the trick. After a little digging, I found confirmation of this trick at the &lt;a href=&quot;http://blog.edogg.com/exit.php?url_id=48&amp;amp;entry_id=18&quot; title=&quot;http://www.cit.gu.edu.au/~anthony/info/www/client.hints&quot;  onmouseover=&quot;window.status='http://www.cit.gu.edu.au/~anthony/info/www/client.hints';return true;&quot; onmouseout=&quot;window.status='';return true;&quot;&gt;following article&lt;/a&gt;. You need to encode '@' as '%40', ':' as '%3A' and '/' as '%2F'.&lt;br /&gt;
&lt;br /&gt;
Posted under the influence of [[NOFX :: Cheese/Where's My Slice]]    </content:encoded>
                
    <pubDate>Mon, 14 Jun 2004 18:14:00 -0500</pubDate>
    <guid isPermaLink="false">http://blog.edogg.com/index.php?/archives/18-guid.html</guid>
    </item>
</channel>
</rss>
