Re: cgi

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sunday 10 November 2002 04:31 pm, Kat wrote:

> I keep getting the 302 redirect and location: in the webpage and not
> in the http header when i use puts(1,"Location: blahblah\n"). How do i get
> it into the actual header?
> 
> Kat

A redirect does not requre or allow a content-type line or any html.
When you say you can see the 302 and location *in the webpage*, 
that makes me think that somehow your cgi is doing more than just 

puts(1,"Status: 302\nLocation: http://whatever.com")

That's all that's needed. (be sure to put a space after the colons)

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu