bug in 'read ?
[1/5] from: hallvard:ystad:helpinhand at: 24-Nov-2002 13:19
Hi list
Here's from a console session:
>> trace/net on
>> t: read http://go.kvasir.sol.no/f/http://www.annonse.no/
URL Parse: none none go.kvasir.sol.no none f/http://www.annonse.no/ none
Net-log: ["Opening tcp for" HTTP]
connecting to: go.kvasir.sol.no
Net-log: {GET /f/http://www.annonse.no/ HTTP/1.0
Accept: */*
Connection: close
User-Agent: REBOL 2.5.0.3.1
Host: go.kvasir.sol.no
}
Net-log: "HTTP/1.1 302 Found"
URL Parse: none none www.annonse.no none none none
Net-log: ["Opening tcp for" HTTP]
connecting to: www.annonse.no
Net-log: {GET / HTTP/1.0
Accept: */*
Connection: close
User-Agent: REBOL 2.5.0.3.1
Host: go.kvasir.sol.no
}
Net-log: "HTTP/1.1 404 Object Not Found"
** User Error: Error. Target url: http://www.annonse.no/ could not be retriev
ed. Server response: HTTP/1.1 404 Object Not Found
** Near: t: read http://go.kvasir.sol.no/f/http://www.annonse.no/
>>
The first URL I'm asking for will redirect to the second (which is also apparent from
the looks of it). When rebol asks for the second URL, there's a http header bug. It says
host: go.kvasir.sol.no
Since annonse.no is only one of several virtual hosts on a server, it will use the host:
header setting to find the right web page for me. So this results in me getting a 404
error instead of the page I want. (Note: you may try this on other sites with no problem.
On rebol.com, for instance, there is only one website running, so you may put whatever
you want in the host: header field.)
Is this a bug, or am I overlooking something? And if it's a bug, is it a known bug? Does
anyone by any chance have a workaround to share?
~H
[2/5] from: hallvard:ystad:helpinhand at: 26-Nov-2002 0:13
Here too:
>> trace/net on
>> t: read http://rebolforces.com/
URL Parse: none none rebolforces.com none none none
Net-log: ["Opening tcp for" HTTP]
connecting to: rebolforces.com
Net-log: {GET / HTTP/1.0
Accept: */*
Connection: close
User-Agent: REBOL 2.5.0.3.1
Host: rebolforces.com
}
Net-log: "HTTP/1.1 302 Found"
URL Parse: none none www.rebolforces.com none none none
Net-log: ["Opening tcp for" HTTP]
connecting to: www.rebolforces.com
Net-log: {GET / HTTP/1.0
Accept: */*
Connection: close
User-Agent: REBOL 2.5.0.3.1
Host: rebolforces.com
}
Net-log: "HTTP/1.1 302 Found"
URL Parse: none none www.rebolforces.com none none none
** User Error: Error. Target url: http://www.rebolforces.com/ could not be re
trieved. Circular forwarding detected
** Near: t: read http://rebolforces.com/
Annoying that is!
~H
Dixit Hallvard Ystad (13.19 24.11.2002):
[3/5] from: hallvard:ystad:helpinhand at: 10-Dec-2002 21:18
Hi
So I asked feedback about this, and they tell me this bug has been fixed, and that I
should upgrade to a newer version of rebol. Here's what I get from the console:
>> upgrade
connecting to: www.rebol.com
Script: "Download Current Version" (18-Jun-2001/13:37:13-7:00)
Your copy of Windows 95/98/NT iX86 REBOL/core 2.5.0.3.1 is currently up-to-date.
>>
So if there's a newer version, where do I get it?
~H
Dixit Hallvard Ystad (00.13 26.11.2002):
[4/5] from: al:bri:xtra at: 11-Dec-2002 10:26
Hallvard wrote:
> So I asked feedback about this, and they tell me this bug has been fixed,
and that I should upgrade to a newer version of rebol. Here's what I get
from the console:
> >> upgrade
> connecting to: www.rebol.com
> Script: "Download Current Version" (18-Jun-2001/13:37:13-7:00)
> Your copy of Windows 95/98/NT iX86 REBOL/core 2.5.0.3.1 is currently
up-to-date.
Yes, I dislike this as well.
Hallvard wrote:
> So if there's a newer version, where do I get it?
Try one of the betas at:
http://www.reboltech.com/downloads/
I hope that helps!
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[5/5] from: hallvard:ystad:helpinhand at: 11-Dec-2002 14:58
Thanks, Andrew. I found a file named cmd2104031.exe. When I type version, I get
>> version
== 2.5.0.27.1
...but when I do an HTTP read, the header states
Net-log: {GET / HTTP/1.0
Accept: */*
Connection: close
User-Agent: REBOL Core 2.5.3.3.1
...but no matter what version that might really be, the redirect problem is solved. So
thanks.
~H
Dixit Andrew Martin (22.26 10.12.2002):