Hi,
I hope this is the right place to ask for some help? I have written a (UNIX/LINUX) shell script that uses wget to get a commodity options page from www.cme.com. I have been running this script on LINUX using wget 1.8.1 with no problems. I am trying to move the script over to the people that host my web site. They are running FreeBSD3.2 BUT they are running wget 1.5.3! The problem is when I run on the freeBSD system it appears like the URL name is being truncated and I get a standard error screen from www.cme.com. This is the debug output I get when using the -d option: ============================================================================
DEBUG output created by Wget 1.5.3 on freeBSD3.2.
Loaded b1 (size 165).
parseurl ("http://www.cme.com/httpwrapper.cfm?wrap=%2Fwrappedpages%2Fend%5Fof%5F day%2Fdaily%5Fsettlement%5Fprices%2Fsp%2Ehtml&beginAfterRE=%3Cbody%3E&endBeforeR E=%3C%2Fbody%3E") -> host www.cme.com -> opath httpwrapper.cfm?wrap=%2Fwrappedpa ges%2Fend%5Fof%5Fday%2Fdaily%5Fsettlement%5Fprices%2Fsp%2Ehtml&beginAfterRE=%3Cb ody%3E&endBeforeRE=%3C%2Fbody%3E -> dir httpwrapper.cfm?wrap=/wrappedpages/end_o f_day/daily_settlement_prices/sp.html&beginAfterRE=<body>&endBeforeRE=< -> file body> -> ndir httpwrapper.cfm?wrap=/wrappedpages/end_of_day/daily_settlement_pri ces/sp.html&beginAfterRE=<body>&endBeforeRE=< --11:13:57-- http://www.cme.com:80/httpwrapper.cfm?wrap=/wrappedpages/end_of_da y/daily_settlement_prices/sp.html%26beginAfterRE=%3Cbody%3E%26endBeforeRE=%3C/bo dy%3E => `/tmp/SPFUT' Connecting to www.cme.com:80... Created fd 5. connected! ---request begin--- GET /httpwrapper.cfm?wrap=/wrappedpages/end_of_day/daily_settlement_prices/sp.ht ml%26beginAfterRE=%3Cbody%3E%26endBeforeRE=%3C/body%3E HTTP/1.0^M User-Agent: Wget/1.5.3^M Host: www.cme.com:80^M Accept: */*^M ^M ---request end--- HTTP request sent, awaiting response... HTTP/1.1 200 OK Server: Netscape-Enterprise/4.1 Date: Wed, 21 Aug 2002 18:14:03 GMT Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Set-Cookie: BSYSTEMENTITIESENABLED=1; path=/; Set-Cookie: CFID=11582838; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/; Set-Cookie: CFTOKEN=54874910; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/; Set-Cookie: DESIGNMODE=false; expires=Mon, 22-Jul-2002 14:13:57 GMT; path=/; Connection: close Length: unspecified [text/html] 0K -> ......
^M
---request end--- HTTP request sent, awaiting response... HTTP/1.1 200 OK Server: Netscape-Enterprise/4.1 Date: Wed, 21 Aug 2002 18:14:03 GMT Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Set-Cookie: BSYSTEMENTITIESENABLED=1; path=/; Set-Cookie: CFID=11582838; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/; Set-Cookie: CFTOKEN=54874910; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/; Set-Cookie: DESIGNMODE=false; expires=Mon, 22-Jul-2002 14:13:57 GMT; path=/; Connection: close Length: unspecified [text/html] 0K -> ......
============================================================ It seems to me like all 165 characters are there but it does not get the correct page on the freebsd computer? Do you have any suggestions? |