problems with 'read
[1/4] from: reboler:bol at: 21-Jan-2004 7:59
Hi Folks!,
Sorry to disturb you again..
But does anybody know how to read this url?
{http://www.scirus.com/srsapp/search?q=metadata&cn=all&t=all&co=AND&q=&cn=al
l&t=all&fdt=1930&tdt=2005&dt=all&ff=all&ds=sd&sa=all&g=a}
Well, I think the problem has to be with cookies.. because if you try to
read the same url using IExplorer.. it does handle the job..
REBOL []
a:
{http://www.scirus.com/srsapp/search?q=metadata&cn=all&t=all&co=AND&q=&cn=al
l&t=all&fdt=1930&tdt=2005&dt=all&ff=all&ds=sd&sa=all&g=a}
a: to-url a
b: read a
print b
Should it be so simple ? but it isn't.
Why RT doesn't build a full-compliant version of read that does handle
everything that a browser does ...
FYI.. using: REBOL/Core 2.5.6.3.1
Rebol Gurus, please help me.
Thanks in advance..
--DJ
[2/4] from: SunandaDH:aol at: 21-Jan-2004 5:46
DJ:
> Well, I think the problem has to be with cookies.. because if you try to
> read the same url using IExplorer.. it does handle the job..
Not quite, but even more annoying -- they are checking the name of the
browser and ignoring anything that isn't IE. It won't work with Opera or Mozilla
either.
Try this:
system/schemes/http/user-agent: "Mozilla/4.0 (compatible; MSIE 5.5; Windows
NT 5.0)"
print read
http://www.scirus.com/srsapp/search?q=metadata&cn=all&t=all&co=AND&q=&cn=all&t=all&fdt=1930&tdt=2005&dt=all&ff=a
ll&ds=sd&sa=all&g=a
That user-agent name is a common way IE identifies itself (yes, it spoofs
itself as Mozilla. It's a strange world we live in)
Sunanda.<
[3/4] from: jason:cunliffe:verizon at: 21-Jan-2004 9:59
> Try this:
> system/schemes/http/user-agent: "Mozilla/4.0 (compatible; MSIE 5.5;
Windows
> NT 5.0)"
>
> print read
>
http://www.scirus.com/srsapp/search?q=metadata&cn=all&t=all&co=AND&q=&cn=all&t=all&fdt=1930&tdt=2005&dt=all&ff=a
> ll&ds=sd&sa=all&g=a
> That user-agent name is a common way IE identifies itself (yes, it spoofs
> itself as Mozilla. It's a strange world we live in)
Indeed !
Thanks for the great tip
- Jason
[4/4] from: reboler::bol::com::br at: 21-Jan-2004 17:30
Thanks Sunanda and Gabriele!!
It worked!!
Best Regards,
--DJ
> DJ:
>
> > Well, I think the problem has to be with cookies.. be
cause if you try to
> > read the same url using IExplorer.. it does handle t
he job..
> Not quite, but even more annoying --
they are checking the name of the
> browser and ignoring anything that isn't IE. It won't w
ork with Opera or Mozilla
> either.
>
> Try this:
>
> system/schemes/http/user-
agent: "Mozilla/4.0 (compatible; MSIE 5.5; Windows
> NT 5.0)"
>
> print read
> http://www.scirus.com/srsapp/search?
q=metadata&cn=all&t=all&co=AND&q=&cn=all&t=all&fdt=1930&t
dt=2005&dt=all&ff=a
> ll&ds=sd&sa=all&g=a
>
> That user-
agent name is a common way IE identifies itself (yes, it
spoofs