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
>> read
** User Error: Error. Target url: could not be retrieved. Circular forwarding detected ** Near: read
>> ; Hmmm. >> x-ray: func [f c][f: open f insert f c c: copy f close f c] >> print x-ray tcp:// "GET /bob/232/ 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: 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 > > > > Internet Explorer redirects to this URL > > > > I am trying to make REBOL perform the same redirection. When I use the > following... > > port: open > 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 > [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 707-468-5400