You Are Here:

Community: Developer Discussion Boards

#1 Old mod_python - 2008-10-30, 21:18

Join Date: Oct 2008
Posts: 54
Anime
Offline
Regular Contributor
How to implement mod_python and raccoon webserver without a binary installation and running it from python?
Reply With Quote

#2 Old Re: mod_python - 2008-10-30, 23:55

Join Date: Jan 2004
Posts: 368
Location: Helsinki
Send a message via Skype™ to miohtama
miohtama's Avatar
miohtama
Offline
Regular Contributor
Quote:
Originally Posted by Anime View Post
How to implement mod_python and raccoon webserver without a binary installation and running it from python?
http://mymobilesite.net


Mikko Ohtamaa
Twinapex Research
http://www.twinapex.com
Reply With Quote

#3 Old Re: mod_python - 2008-10-31, 00:16

Join Date: Oct 2008
Posts: 54
Anime
Offline
Regular Contributor
I need to execute it from python because the binary installation is only for s60 2nd Ed/ 3rd Ed.
Last edited by Anime : 2008-10-31 at 00:36.
Reply With Quote

#4 Old Re: mod_python - 2008-10-31, 00:22

Join Date: Jan 2004
Posts: 368
Location: Helsinki
Send a message via Skype™ to miohtama
miohtama's Avatar
miohtama
Offline
Regular Contributor
You can't do that - Apache is C code and you'd need to rewrite the whole web server. Apache hosts Python, not other way around.

What you are looking for is "how to serve HTTP traffic from a PyS60 application" - am I right?


Mikko Ohtamaa
Twinapex Research
http://www.twinapex.com
Reply With Quote

#5 Old Re: mod_python - 2008-10-31, 00:39

Join Date: Oct 2008
Posts: 54
Anime
Offline
Regular Contributor
I don't think is possible with the default modules.
Reply With Quote

#6 Old Re: mod_python - 2008-10-31, 00:50

Join Date: Jan 2004
Posts: 368
Location: Helsinki
Send a message via Skype™ to miohtama
miohtama's Avatar
miohtama
Offline
Regular Contributor
Quote:
Originally Posted by Anime View Post
I don't think is possible with the default modules.
Just open a socket and listen to it? Surely it is possible.


Mikko Ohtamaa
Twinapex Research
http://www.twinapex.com
Reply With Quote

#7 Old Re: mod_python - 2008-10-31, 00:59

Join Date: Oct 2008
Posts: 54
Anime
Offline
Regular Contributor
There isn't any example. Where to find it?
Reply With Quote

#8 Old Cool Re: mod_python - 2008-10-31, 01:09

Join Date: Jan 2004
Posts: 368
Location: Helsinki
Send a message via Skype™ to miohtama
miohtama's Avatar
miohtama
Offline
Regular Contributor
Quote:
Originally Posted by Anime View Post
There isn't any example. Where to find it?
Read PyS60 API documentation how to open a socket for listening. Use generic Python documentation about how to read incoming requests for socket. Read HTTP specification about what kind of content is coming in. Parse HTTP response manually. Serve HTTP response manually. Because you are doing something for which other users seem to have no need, you need be able to apply generic knowledge.

With some luck gooling pys60 http socket listen bind or similar you can find something.


Mikko Ohtamaa
Twinapex Research
http://www.twinapex.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia