Errin when executing a cgi script that sets a cookie in the browser
rurpy at yahoo.com
rurpy at yahoo.com
Wed Jun 5 18:36:23 EDT 2013
On 06/05/2013 04:21 PM, Chris Angelico wrote:
> On Thu, Jun 6, 2013 at 7:18 AM, <rurpy at yahoo.com> wrote:
>> On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote:
..[...]
>> Ah, quite right. Something like
>>
>> print( cookie, "\nContent-type: text/html; charset=utf-8\n\n", message )
>>
>> then.
>
> Or change the sep, or concatenate with + instead of using , between
> them. Or put them on separate lines. Anything like that would work.
Of course.
> And it's really easy to try things out interactively to see what
> they'll do...
Sure, once one makes the connection between "Server Error" and missing "\n"
which is where Νικόλαος was stuck I'm guessing.
More information about the Python-list
mailing list