[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] (RaQ2) Problem with headers again.



Ahoy

You're right, it won't. You EITHER return a page OR a location. If you
return a page, then

print "Content-type: text/html\n\n"
print "<pagecodehere>";
exit;

or, better yet

print<<"End_Page";
Content-type: text/html

<pagecodehere>
EndPage
exit;

is appropriate. If you return a location, then

print "Location: http://www.thatsite.com\n\n";;

is the way. But you can't do both at once.

Aloha


-----Original Message-----
From: Dominik Brettnacher <domi@xxxxxxxxxxx>
To: cobalt-users@xxxxxxxxxxxxxxx <cobalt-users@xxxxxxxxxxxxxxx>
Date: Saturday, November 27, 1999 5:59 AM
Subject: Re: [cobalt-users] (RaQ2) Problem with headers again.


>On Thu, 18 Nov 1999, cobalt-users@xxxxxxxxxxxxxxx wrote:
>
>> It rins fine on a shell, and it prinrts:
>>
>> Content-type: text/html
>> Location: http://some_URL
>
>Why do you use "Content-type" together with "Location"? I think this
>doesn't work anyway.
>
>
>--
>Dominik - http://www.saargate.de/~domi/
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>http://list.cobalt.com/mailman/listinfo/cobalt-users
>