Mmm. Interesting redirection problem I think.
If I do:
trace/net on
cont: read/binary url
then I see lots of
Net-log: "HTTP/1.1 302 Object Moved"
and after about five redirections I have this:
Net-log: {GET /////citypage/scripts/PDF_Display.cfm?ftd=../docs/pdfs
/Departments/Parks%20and%20Leisure%20Services/Brochure/Previous%20Br
ochures/Brochure%202004c%20Summer/%2E%2E%2Fdocs%2Fpdfs%2FDepartments
%2FParks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Brochure
s%2FBrochure%202004c%20Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2
FParks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Brochures%
2FBrochure%202004c%20Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2FP
arks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Brochures%2F
Brochure%202004c%20Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2FPar
ks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Brochures%2FBr
ochure%202004c%20Summer%2F06%20%2D%20Aquatics.pdf HTTP/1.0
and it continues to grow and grow.
(Furthermore, the first instance of REBOL/View 1.2.57.3.1e I tried this
in suddenly quit when I tried restarting the read after a few previous
times.)
I noticed that Firefox recoded the URL, into this:
http://kelowna.ca/citypage/scripts/%2E%2E%2Fdocs%2Fpdfs%2FDepartm
ents%2FParks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Bro
chures%2FBrochure%202004c%20Summer%2F06%20%2D%20Aquatics.pdf
Without checking, it seems to me that perhaps the original url
uses non-standard characters... so it might be the fault of
rebol in not encoding those illegal characters properly. Not sure
at this time.
Anton.
> Thanks, Tom ~
>
> that was exactly it.
>
> How come I can cut & paste the url from my script below in any
> browser and=
> it will download the PDF. Rebol, however, fails every time.
>
> What could be the reason?
>
> Thanks for any help,
> Kai
>
> Rebol[]
>
> url:=
>
> http://kelowna.ca/citypage/scripts/PDF_Display.cfm?ftd=3D../docs/p
dfs/Departm=
ents/Parks%20and%20Leisure%20Services/Brochure/Previous%20Brochures/Brochure
=
%202004c%20Summer/06%20-%20Aquatics.pdf
write/binary %/c/Aquatics.pdf read/binary url
--
--
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.