Re: cgi
- Posted by Kat <kat at kogeijin.com> Nov 10, 2002
- 480 views
On 10 Nov 2002, at 21:39, Robert Szalay wrote: > > I am able to redirect just fine with this(and only this): > > puts(1, "Location: http://www.google.com/\r\n\r\n") Unkmar gave me his file, which i put in instead of mine, his works, mine doesn't, same words, different url. They look identical otherwise in Textpad on my puter and in nano on the shell. <shrug> Still, this redirect exposes the target url, and would expose my ip# to the user. Since i have no bandwidth, the major point of this is to hide my ip# so i cannot be DoS'd. The 2nd major point is to have me initiate the backside connection to the shell, and not haveto open an incoming hole thru the firewall here. So i still need this: 1) program to accept incoming http from a browser on a nix shell, most probably an freebsd flavor 2) a program for me to connect to, either user!pass@url http with unlimited ttl, or a ftp-like connection for me to get output from 3) 3) the part i write to munge output of 1) and have sent to me thru 2) This part will need to accept back what i send up to 2), and send back thru 1) to the user. Kat > ----- Original Message ----- > From: <irv at take.maxleft.com> > To: EUforum <EUforum at topica.com> > Sent: Sunday, November 10, 2002 8:30 PM > Subject: Re: cgi > > > On Sunday 10 November 2002 05:52 pm, you wrote: > > > > I think i know what the problem is (but not sure yet) > > > > Try more along the lines of this: > > > > puts(1,"Content-Type: text/html\r\n") > > puts(1,"Location: http://www.google.com/\r\n\r\n") > > If you don't output "Status: 302\n", you certainly won't get a redirect. > The Content-Type line is unnecessary, but didn't cause any problem > when I added it. > > Regards, > Irv > > > ==^================================================================ > This email was sent to: kat at kogeijin.com > > EASY UNSUBSCRIBE click here: http://topica.com/u/?b1dd66.b3cnso.a2F0QGtv > Or send an email to: EUforum-unsubscribe at topica.com > > T O P I C A -- Register now to manage your mail! > http://www.topica.com/partner/tag02/register > ==^================================================================ >