Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Bug? Rebol/View not able to read nbci site? Re:

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/