Bug? Rebol/View not able to read nbci site?
[1/4] from: al:bri:xtra at: 26-Sep-2000 20:16
This fails:
read http://members.nbci.com/_XMCM/AndrewMartin/RESUME.HTM
on several pages with either network timeout or:
<html>
<head>
<title>NBCi 404 Error</title>
<snip!>
Yet my site can be read with my browser?
I'm using this version of Rebol:
>> rebol/version
== 0.10.34.3.1
and it's the very latest version with the correct code for hash!.
Andrew Martin
Feeling like a failed Jedi apprentice...
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/
[2/4] from: al:bri:xtra at: 26-Sep-2000 20:34
Earlier, I wrote:
> This fails:
> read http://members.nbci.com/_XMCM/AndrewMartin/RESUME.HTM
>
> on several pages with either network timeout or:
>
> <html>
> <head>
> <title>NBCi 404 Error</title>
The problem is actually due to Rebol's use of an incompatible (with other
browsers) value for http/user-agent. Proof:
REBOL/View 0.10.34.3.1 25-Sep-2000
Copyright 2000 REBOL Technologies. All rights reserved.
>> read http://members.nbci.com/_XMCM/SpectrumStudios/index.html
== {
<html>
<head>
<title>NBCi 404 Error</title>
<META NAME="resource-type" CONTENT=document>
<META NAME="description" CONTENT="">
...
>> ; A better choice for http user-agent:
>> system/schemes/http/user-agent: rejoin [
[ "Mozilla" "/" "4.0"
[ " (Compatible; " system/schemes/http/user-agent ")"
[ ]
== "Mozilla/4.0 (Compatible; REBOL 0.10.34.3.1)"
>> read http://members.nbci.com/_XMCM/SpectrumStudios/index.html
== {<HTML>
<HEAD>
<Title>Spectrum Studios</Title>
</HEAD>
<BODY>
<H1>Spectrum Studios</H1>
<H2>Opening soon!</H2>
Contact us at: <A...
>>
So system/schemes/http/user-agent should really be:
"Mozilla/4.0 (Compatible; REBOL 0.10.34.3.1)"
or similar, depending upon Rebol/version.
Andrew Martin
Feeling like a Jedi Master...
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/
[3/4] from: larry:ecotope at: 26-Sep-2000 12:05
Hi Andrew
I just tried the second Andrew's icon for your rebsite, the one on the right
in the sites window, and it seems to work OK, although the first one has the
same problems as before. Wondering what made the difference?
Cheers
-Larry
----- Original Message -----
From: <[Al--Bri--xtra--co--nz]>
To: <[list--rebol--com]>
Cc: <[list--rebol--com]>
[4/4] from: al:bri:xtra at: 27-Sep-2000 8:53
Hi, Larry, you wrote:
> I just tried the second Andrew's icon for your rebsite, the one on the
right in the sites window, and it seems to work OK, although the first one
has the same problems as before. Wondering what made the difference?
I'm not sure. Earlier, I wrote:
> > This fails:
> > read http://members.nbci.com/_XMCM/AndrewMartin/RESUME.HTM
<<quoted lines omitted: 5>>
> >
> > <snip!>
yet now I find that the read... line works as expected! The first icon
uses a bad address, while the second one drops the _XMCM directory out.
Thanks for trying it out, Larry!
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted