[REBOL] Re: redirecting from http to ftp
From: ryanc:iesco-dms at: 28-Jun-2001 10:05
View handles the response a bit better...
>> 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
** 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
>> 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?
> In Internet Explorer, when I go to this URL
> Internet Explorer redirects to this URL
> I am trying to make REBOL perform the same redirection. When I use the
> 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
> 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
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.