Anton ~

I copy and paste the URL from a file which I have just inspected with a hex=
 editor for any unusual characters and it does
not contain anything besides alphas, numbers and six specials: dot, colon,=
 slash, question mark, equal sign and percent.

I also noticed what you have found (though w/o tracing): Depending on the=
 Rebol version, I either get tons of "connecting to: kelowna.ca"
messages on the console or nothing at all before it finally gives up.

Kai





 On Fri, 4 Mar 2005 15:00:30 +1100, Anton Rolls wrote:
>
>=A0Mmm. Interesting redirection problem I think.
>=A0If I do:
>
>=A0trace/net on
>=A0cont: read/binary url
>
>=A0then I see lots of
>
>=A0Net-log: "HTTP/1.1 302 Object Moved"
>
>=A0and after about five redirections I have this:
>
>=A0Net-log: {GET
>=A0/////citypage/scripts/PDF_Display.cfm?ftd=3D../docs/pdfs
>=A0/Departments/Parks%20and%20Leisure%20Services/Brochure/Previous%20Br o
>=A0chures/Brochure%202004c%20Summer/%2E%2E%2Fdocs%2Fpdfs%2FDepartments
>=A0%2FParks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Brochure s
>=A0%2FBrochure%202004c%20Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2
>=A0FParks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Brochures% 2
>=A0FBrochure%202004c%20Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2FP
>=A0arks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Brochures%2F B
>=A0rochure%202004c%20Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2FPar
>=A0ks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Brochures%2FBr o
>=A0chure%202004c%20Summer%2F06%20%2D%20Aquatics.pdf HTTP/1.0
>
>=A0and it continues to grow and grow.
>
>=A0(Furthermore, the first instance of REBOL/View 1.2.57.3.1e I tried
>=A0this in suddenly quit when I tried restarting the read after a few
>=A0previous times.)
>
>=A0I noticed that Firefox recoded the URL, into this:
>=A0http://kelowna.ca/citypage/scripts/%2E%2E%2Fdocs%2Fpdfs%2FDepartm
>=A0ents%2FParks%20and%20Leisure%20Services%2FBrochure%2FPrevious%20Bro
>=A0chures%2FBrochure%202004c%20Summer%2F06%20%2D%20Aquatics.pdf
>
>=A0Without checking, it seems to me that perhaps the original url uses
>=A0non-standard characters... so it might be the fault of rebol in not
>=A0encoding those illegal characters properly. Not sure at this time.
>
>=A0Anton.
>
>>=A0Thanks, Tom ~
>>
>>=A0that was exactly it.
>>
>>=A0How come I can cut &=A0paste the url from my script below in any
>>=A0browser and=3D
>>=A0it will download the PDF. Rebol, however, fails every time.
>>
>>=A0What could be the reason?
>>
>>=A0Thanks for any help,
>>=A0Kai
>>
>>=A0Rebol[]
>>
>>=A0url:=3D
>>
>>=A0http://kelowna.ca/citypage/scripts/PDF_Display.cfm?ftd=3D3D../docs/p
>>
>=A0dfs/Departm=3D
>=A0ents/Parks%20and%20Leisure%20Services/Brochure/Previous%20Brochures/Br
>=A0ochure =3D %202004c%20Summer/06%20-%20Aquatics.pdf
>
>=A0write/binary %/c/Aquatics.pdf read/binary url
>
>
>=A0--



-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to