<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: wget fail with HTTP 500 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066431#M64904</link>
    <description>If you look at the wget output the URL is different from the one you supplied. If the string "$File" is a literal part of the URL and not something you're supposed to get from your environment you'll need to either escape the $ or enclose the URL in single quotes.</description>
    <pubDate>Fri, 07 Sep 2007 10:02:20 GMT</pubDate>
    <dc:creator>Heironimus</dc:creator>
    <dc:date>2007-09-07T10:02:20Z</dc:date>
    <item>
      <title>wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066428#M64901</link>
      <description>&lt;!--!*#--&gt;Hi Guys,&lt;BR /&gt;&lt;BR /&gt;  I been trying to download data from a website using wget but it does not seems to work. It only seems to work when i download via a browser. Is there anyway i can force wget to get the data?&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;$ wget --debug  &lt;A href="http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/$File/SESprice.zip" target="_blank"&gt;http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/$File/SESprice.zip&lt;/A&gt;&lt;BR /&gt;DEBUG output created by Wget 1.9+cvs-stable (Red Hat modified) on linux-gnu.&lt;BR /&gt;&lt;BR /&gt;--00:09:32--  &lt;A href="http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/SESprice.zip" target="_blank"&gt;http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/SESprice.zip&lt;/A&gt;&lt;BR /&gt;           =&amp;gt; `SESprice.zip'&lt;BR /&gt;Resolving info.sgx.com... 203.127.29.6&lt;BR /&gt;Caching info.sgx.com =&amp;gt; 203.127.29.6&lt;BR /&gt;Connecting to info.sgx.com[203.127.29.6]:80... connected.&lt;BR /&gt;Created socket 3.&lt;BR /&gt;Releasing 0x9dc26b0 (new refcount 1).&lt;BR /&gt;---request begin---&lt;BR /&gt;GET /webprices.nsf/stkprices/2007-09-05/SESprice.zip HTTP/1.0&lt;BR /&gt;User-Agent: Wget/1.9+cvs-stable (Red Hat modified)&lt;BR /&gt;Host: info.sgx.com&lt;BR /&gt;Accept: */*&lt;BR /&gt;Connection: Keep-Alive&lt;BR /&gt;&lt;BR /&gt;---request end---&lt;BR /&gt;HTTP request sent, awaiting response... HTTP/1.1 500 Internal Server Error&lt;BR /&gt;Server: Lotus-Domino/0&lt;BR /&gt;Date: Thu, 06 Sep 2007 15:58:18 GMT&lt;BR /&gt;Content-Type: text/html; charset=US-ASCII&lt;BR /&gt;Content-Length: 139&lt;BR /&gt;Expires: Tue, 01 Jan 1980 06:00:00 GMT&lt;BR /&gt;Pragma: no-cache&lt;BR /&gt;Connection: Close&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Closing fd 3&lt;BR /&gt;00:09:32 ERROR 500: Internal Server Error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Henry</description>
      <pubDate>Thu, 06 Sep 2007 11:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066428#M64901</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2007-09-06T11:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066429#M64902</link>
      <description>Shalom Henry,&lt;BR /&gt;&lt;BR /&gt;You may be getting a proxy error. Are there proxy settings in your browser not present in wget .wgetrc ??&lt;BR /&gt;&lt;BR /&gt;Could also be security on the site itself designed to thwart wholesale download of the entire site.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 06 Sep 2007 11:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066429#M64902</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-06T11:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066430#M64903</link>
      <description>Hi Henry,&lt;BR /&gt;&lt;BR /&gt;Looks like a problem with the site to me.&lt;BR /&gt;I just tried dropping the URL: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/SESprice.zip" target="_blank"&gt;http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/SESprice.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;into Internet Explorer, and also got a 500 error.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Rob</description>
      <pubDate>Thu, 06 Sep 2007 14:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066430#M64903</guid>
      <dc:creator>Rob Leadbeater</dc:creator>
      <dc:date>2007-09-06T14:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066431#M64904</link>
      <description>If you look at the wget output the URL is different from the one you supplied. If the string "$File" is a literal part of the URL and not something you're supposed to get from your environment you'll need to either escape the $ or enclose the URL in single quotes.</description>
      <pubDate>Fri, 07 Sep 2007 10:02:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066431#M64904</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2007-09-07T10:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066432#M64905</link>
      <description>Hi Henry:&lt;BR /&gt;&lt;BR /&gt;To add to Heironimus' comments, you would be best advised to enclose any interpolated variables (parameter substitution) in curly braces to avoid ambiguity.  Thus, instead of:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/$File/SESprice.zip" target="_blank"&gt;http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/$File/SESprice.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...use:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/${File}/SESprice.zip" target="_blank"&gt;http://info.sgx.com/webprices.nsf/stkprices/2007-09-05/${File}/SESprice.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;..,if ${file} is intended to be interpolated into its value.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2007 16:50:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066432#M64905</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-09-07T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066433#M64906</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;  Thanks for the reply... I have it appears that i can only download the file from the website only.. which is '&lt;A href="http://info.sgx.com/webprices.nsf/new+historical+stock+prices?openview'." target="_blank"&gt;http://info.sgx.com/webprices.nsf/new+historical+stock+prices?openview'.&lt;/A&gt; Is there any reason y this is so??&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Henry</description>
      <pubDate>Sat, 08 Sep 2007 10:06:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066433#M64906</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2007-09-08T10:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066434#M64907</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I've operated web servers for a few years right now. I've read in the trade press that its possible to block wget from grabbing the web content.&lt;BR /&gt;&lt;BR /&gt;I assume it's either a firewall or httpd.conf configuration fix. I believe the operator of the website wishes to prevent this type of access.&lt;BR /&gt;&lt;BR /&gt;I can't say I know the details but I can see why an operator would want to do this.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sat, 08 Sep 2007 19:33:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066434#M64907</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-08T19:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066435#M64908</link>
      <description>I can download the file with wget.</description>
      <pubDate>Mon, 10 Sep 2007 11:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066435#M64908</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2007-09-10T11:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: wget fail with HTTP 500</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066436#M64909</link>
      <description>Just escaped $ (\$) and everything was OK:&lt;BR /&gt;&lt;BR /&gt;wget --debug "&lt;A href="http://info.sgx.com/webprices.nsf/stkprices/2007-09-10/" target="_blank"&gt;http://info.sgx.com/webprices.nsf/stkprices/2007-09-10/&lt;/A&gt;\$File/SESprice.zip"&lt;BR /&gt;DEBUG output created by Wget 1.10.2 on linux-gnu.&lt;BR /&gt;&lt;BR /&gt;--21:34:04--  &lt;A href="http://info.sgx.com/webprices.nsf/stkprices/2007-09-10/$File/SESprice.zip" target="_blank"&gt;http://info.sgx.com/webprices.nsf/stkprices/2007-09-10/$File/SESprice.zip&lt;/A&gt;&lt;BR /&gt;           =&amp;gt; `SESprice.zip'&lt;BR /&gt;Resolving info.sgx.com... 203.127.29.6&lt;BR /&gt;Caching info.sgx.com =&amp;gt; 203.127.29.6&lt;BR /&gt;Connecting to info.sgx.com|203.127.29.6|:80... connected.&lt;BR /&gt;Created socket 3.&lt;BR /&gt;Releasing 0x0808e618 (new refcount 1).&lt;BR /&gt;&lt;BR /&gt;---request begin---&lt;BR /&gt;GET /webprices.nsf/stkprices/2007-09-10/$File/SESprice.zip HTTP/1.0&lt;BR /&gt;User-Agent: Wget/1.10.2&lt;BR /&gt;Accept: */*&lt;BR /&gt;Host: info.sgx.com&lt;BR /&gt;Connection: Keep-Alive&lt;BR /&gt;&lt;BR /&gt;---request end---&lt;BR /&gt;HTTP request sent, awaiting response...&lt;BR /&gt;---response begin---&lt;BR /&gt;HTTP/1.1 200 OK&lt;BR /&gt;Server: Lotus-Domino/0&lt;BR /&gt;Date: Mon, 10 Sep 2007 19:28:11 GMT&lt;BR /&gt;Connection: close&lt;BR /&gt;Content-Type: application/x-zip&lt;BR /&gt;Content-Length: 48860&lt;BR /&gt;Last-Modified: Mon, 10 Sep 2007 15:28:21 GMT&lt;BR /&gt;Accept-Ranges: bytes&lt;BR /&gt;&lt;BR /&gt;---response end---&lt;BR /&gt;200 OK&lt;BR /&gt;Length: 48,860 (48K) [application/x-zip]&lt;BR /&gt;&lt;BR /&gt;100%[=================================================================================================&amp;gt;] 48,860        29.23K/s&lt;BR /&gt;&lt;BR /&gt;Closed fd 3&lt;BR /&gt;21:34:06 (29.21 KB/s) - `SESprice.zip' saved [48860/48860]&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Sep 2007 14:29:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wget-fail-with-http-500/m-p/4066436#M64909</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-09-10T14:29:14Z</dc:date>
    </item>
  </channel>
</rss>

