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

[REBOL] Re: Newbie read question?

From: antonr::lexicon::net at: 4-Mar-2005 15:00

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 and Leisure Services/Brochure/Previous Br ochures/Brochure 2004c Summer/%2E%2E%2Fdocs%2Fpdfs%2FDepartments %2FParks and Leisure Services%2FBrochure%2FPrevious Brochure s%2FBrochure 2004c Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2 FParks and Leisure Services%2FBrochure%2FPrevious Brochures% 2FBrochure 2004c Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2FP arks and Leisure Services%2FBrochure%2FPrevious Brochures%2F Brochure 2004c Summer%2F%2E%2E%2Fdocs%2Fpdfs%2FDepartments%2FPar ks and Leisure Services%2FBrochure%2FPrevious Brochures%2FBr ochure 2004c Summer%2F06 %2D Aquatics.pdf HTTP/1.0 and it continues to grow and grow. (Furthermore, the first instance of REBOL/View 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: ents%2FParks and Leisure Services%2FBrochure%2FPrevious Bro chures%2FBrochure 2004c Summer%2F06 %2D Aquatics.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: > >
dfs/Departments/Parks and Leisure Services/Brochure/Previous Brochures/Brochure 2004c Summer/06 - Aquatics.pdf write/binary %/c/Aquatics.pdf read/binary url