On Oct 17, 6:43 pm, Prunikov <[EMAIL PROTECTED]> wrote:
> Simple example.
>
> def application(environ, start_response):
>     source = 'source'
>
>     import urllib2
>     url = 'http://www.google.com/'
>     urllib2.urlopen(url)
>
>     response_headers = [('Content-type', 'text/html'),
>                         ('Content-Length', str(len(source)))]
>
>     start_response('200 OK', response_headers)
>     return [source]
>
> got this in error.log
>
> [Fri Oct 17 23:38:22 2008] [error] [client 127.0.0.1] Premature end of
> script headers: application-d.wsgi.py
>
> ----------------------
> SERVER_SOFTWARE ::: Apache/2.2.9 (Unix) mod_fastcgi/2.4.2 mod_ssl/
> 2.2.9 OpenSSL/0.9.7l DAV/2 PHP/5.2.6 mod_wsgi/2.0 Python/2.5.1

If the mod_wsgi version above is correct upgrade to 2.3.

Regards, Clodoaldo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to