{"id":271,"date":"2009-03-21T12:35:14","date_gmt":"2009-03-21T07:05:14","guid":{"rendered":"http:\/\/brainstorms.in\/?p=271"},"modified":"2009-03-21T12:50:21","modified_gmt":"2009-03-21T07:20:21","slug":"wget-behind-a-proxy-server-with-authentication","status":"publish","type":"post","link":"https:\/\/brainstorms.in\/?p=271","title":{"rendered":"wget behind   a proxy server with authentication"},"content":{"rendered":"<p>Recently we implemented proxy authentication and lot\u00a0 some amount of\u00a0 content filtering at my college. Several people\u00a0\u00a0 here are using wget as the download manager. Here is\u00a0 how you make wget work behind the proxy.<\/p>\n<p>sunil@debianserver:~$ export http_proxy=192.168.0.5:3128<\/p>\n<p>( Replace with your proxy ip and port).<\/p>\n<p>You can specify the proxy user name and password on command line as below.<\/p>\n<p>wget &#8211;proxy-user &#8220;yourusername&#8221; &#8211;proxy-passwd=&#8221;xxxxxxx&#8221;\u00a0\u00a0 URL<\/p>\n<p>If you are tired of typing the above\u00a0 everytime you login, make an alias entry in ~\/.bashrc<\/p>\n<pre> alias wget='wget --proxy-user \"yourusername\" --proxy-passwd=\"xxxxxx\"'\r\n\r\nThe export_proxy line can also be put into .bashrc .\r\n  This is a potential security risk as any one can read your .bashrc ( the default .bashrc  permission is rrw-r--r--) is  or  he can look for your process  id in the  \/proc\r\ndirectory and find out the command line arguments.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Recently we implemented proxy authentication and lot\u00a0 some amount of\u00a0 content filtering at my college. Several people\u00a0\u00a0 here are using wget as the download manager. Here is\u00a0 how you make wget work behind the proxy. sunil@debianserver:~$ export http_proxy=192.168.0.5:3128 ( Replace with your proxy ip and port). You can specify the proxy user name and password&hellip; <a href=\"https:\/\/brainstorms.in\/?p=271\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">wget behind   a proxy server with authentication<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-gnulinux"],"_links":{"self":[{"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/brainstorms.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=271"}],"version-history":[{"count":0,"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/posts\/271\/revisions"}],"wp:attachment":[{"href":"https:\/\/brainstorms.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brainstorms.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brainstorms.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}