in reply to redirect to a NEW window

If your perl script really looked like that it should not work as you define $link after you use it.... You could try a 303 or 302 with full status line.

my $link = "domain.com"; # 302 is the usual print "Status: 302 Found\nLocation: http://$link/\n\n"; # 303 may be more reliable print "Status: 303 See Other\n:Location: http://$link/\n\n";

cheers

tachyon

Replies are listed 'Best First'.
Re^2: redirect to a NEW window
by Anonymous Monk on Oct 01, 2004 at 16:10 UTC
    tachyon, I'm not sure what all this URI and 302/303 is all about, but adding Status: 302... works wonders. I presume I add one or the other, not both. Thank you, --Sandra

      Yes, you add one or the other. Every HTTP response includes a Status code. Usual ones are 200 OK, 404 Not Found, 500 Internal Server Error. The 3xx status codes are redirects.

      cheers

      tachyon