[modwsgi] Re: Bad header with mod_proxy, mod_wsgi and paste. Possible bug

2008-09-19 Thread Brian Smith
Graham Dumpleton wrote: I wouldn't expect that a check of each header for embedded newline, would cause that significant a slow down. :-) It isn't that simple. In HTTP, quoted strings and comments can contain an embedded newline if it is prefixed with a backslash, but otherwise the backslash

[modwsgi] wsgi info()

2008-09-19 Thread Lukasz Szybalski
Hello, Is there a way from modwsgi to get something similar to this: http://www.franklindigitalproperties.com/php_info.php especially the part that lists all the related modules. Thanks, Lucas -- Python and OpenOffice documents and templates http://lucasmanual.com/mywiki/OpenOffice Fast

[modwsgi] Re: Authorization

2008-09-19 Thread Carl Nobile
Use Basic auth maybe with SSL and put the contents of the cookie, after base64 encoded, in the spot designated for the password. As long as the server can be told what should be in the user's cookie it should work. Basic auth really doesn't care where the data comes from as long as it can be

[modwsgi] Re: Authorization

2008-09-19 Thread Alex K
OK, thanks for the info, and one more question: How can I create a link with basic auth request or form a request in the browser, so that this link is available to end user ? Alex On 19 сент, 23:33, Carl Nobile [EMAIL PROTECTED] wrote: Implementing basic auth is fairly easy as compared to

[modwsgi] mod_wsgi + AMD64

2008-09-19 Thread TheIvIaxx
As i understand it, i will need to build mod_wsgi for Vista 64 on the AMD64 architecture. Unfortunately i have never built a python module :) I've tried before on MySQLdb with no luck, it think my environment is not set up properly. Anyhow, i would like to ask the community if there has been a

[modwsgi] Re: mod_wsgi + AMD64

2008-09-19 Thread Graham Dumpleton
2008/9/20 TheIvIaxx [EMAIL PROTECTED]: As i understand it, i will need to build mod_wsgi for Vista 64 on the AMD64 architecture. Unfortunately i have never built a python module :) That is okay, it isn't a Python module so that will not help. It is actually worse than a Python module, it

[modwsgi] Re: wsgi info()

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: mod_wsgi is not a framework, so don't expect it to generate web pages for you it is a way of using WSGI (Web Service Gateway Interface) with apache only, and is very light weight compared to other alternatives. You could get what you want from

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Alex K [EMAIL PROTECTED]: OK, I'll try, btw what is the common way to solve this task? My first idea was to encapsulate file sharing via the application itself (http://host.com/givemefile.py?file_id=1), but I fear about poor performance in this case. If you use wsgi.file_wrapper

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: Implementing basic auth is fairly easy as compared to digest auth, but be aware that with basic auth your username/password(cookie value) are essentially sent in the clear no encryption is done. Don't mistake base64 encoding for encryption as being

[modwsgi] Re: wsgi info()

2008-09-19 Thread Carl Nobile
Graham, I like your approach to this it will keep things very decoupled and would still allow a developer to generate stats on what is going on inside mod_wsgi. It would be cool to start seeing its use in something like Djangos admin. The assumption here is that you would provide a Python API into

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: Alex, Basic auth is sent with each end every request that needs authentication. You just add the proper headers in your request and it should all work. Now, something else to think about is that your browser will intercept the first auth request and

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/20 Carl Nobile [EMAIL PROTECTED]: Alex, Basic auth is sent with each end every request that needs authentication. You just add the proper headers in your request and it should all work. Now, something else to think about is that your

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: Herein lies my problem with Apache's authentication. Lets say I have a URI: /users This URI can have some subset of the six HTTP methods applied to it, for example: PUT will add a new user and does not require any authentication. GET will return a

[modwsgi] Re: Authorization

2008-09-19 Thread Carl Nobile
Hey no problem, thanks for the tip. It may help. Lunch? I'm going to bed soon. LOL On Fri, Sep 19, 2008 at 11:01 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/20 Carl Nobile [EMAIL PROTECTED]: Herein lies my problem with Apache's authentication. Lets say I have a URI: /users