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

[REBOL] Re: redirecting from http to ftp

From: ryanc:iesco-dms at: 28-Jun-2001 10:05

View handles the response a bit better...
>> system/version
== 1.2.1.3.1
>> read http://www.bebits.com/bob/232/MailToI.zip
** User Error: Error. Target url: http://www.bebits.com//bob/232/ftp://ftp.v ortex.is/pub/be/jonr/MailToI.zip could not be retrieved. Circular forwarding detected ** Near: read http://www.bebits.com/bob/232/MailToI.zip
>> ; Hmmm. >> x-ray: func [f c][f: open f insert f c c: copy f close f c] >> print x-ray tcp://www.bebits.com:80 "GET /bob/232/MailToI.zip http/1.0^/^/"
HTTP/1.1 301 Moved Permanently Date: Thu, 28 Jun 2001 16:16:51 GMT Server: Apache/1.3.9 (Unix) TARP/0.42-alpha PHP/4.0.4pl1 secured_by_Raven/1.4 .2 X-Powered-By: PHP/4.0.4pl1 Location: ftp://ftp.vortex.is/pub/be/jonr/MailToI.zip Connection: close Content-Type: text/html
>> save %http.txt system/schemes/http ; Enlightening in situations like these
A dirty fix might be to read the header for situations as this, but RT should probably implement a special error for FTP redirect, so you can just do your own redirection when it is encountered. I heard their is another way to get that header info, anyone? --Ryan [ryan--christiansen--intellisol--com] wrote:
> In Internet Explorer, when I go to this URL > > http://www.bebits.com/bob/232/MailToI.zip > > Internet Explorer redirects to this URL > > ftp://ftp.vortex.is/pub/be/jonr/MailToI.zip > > I am trying to make REBOL perform the same redirection. When I use the > following... > > port: open http://www.bebits.com/bob/232/MailToI.zip > redirect-url: make url! probe port/url > > REBOL gets "stuck" and simply reconnects over and over again to the http > URL and never receives the ftp URL as input. > > What am I missing? > > Ryan C. Christiansen > Web Developer > > Intellisol International > 4733 Amber Valley Parkway > Fargo, ND 58104 > 701-235-3390 ext. 6671 > FAX: 701-235-9940 > http://www.intellisol.com > > Global Leader in People Performance Software > > _____________________________________ > > Confidentiality Notice > This message may contain privileged and confidential information. If you > think, for any reason, that this message may have been addressed to you in > error, you must not disseminate, copy or take any action in reliance on it, > and we would ask you to notify us immediately by return email to > [ryan--christiansen--intellisol--com] > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Ryan Cole Programmer Analyst www.iesco-dms.com 707-468-5400