Latest recipes tagged "server"http://code.activestate.com/recipes/tags/server/new/2014-12-03T21:27:54-08:00ActiveState Code RecipesServe PDF with Netius, a pure-Python network library, and xtopdf (Python)
2014-12-03T21:27:54-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/578974-serve-pdf-with-netius-a-pure-python-network-librar/
<p style="color: grey">
Python
recipe 578974
by <a href="/recipes/users/4173351/">Vasudev Ram</a>
(<a href="/recipes/tags/client/">client</a>, <a href="/recipes/tags/client_server/">client_server</a>, <a href="/recipes/tags/networking/">networking</a>, <a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/server/">server</a>).
</p>
<p>This recipe shows how to serve PDF from a server written using Netius, a pure-Python library, together with xtopdf, a Python toolkit for PDF creation. It is a proof-of-concept recipe, to show the essentials needed for the task, so it hard-codes the text content that is served as PDF, but the concepts shown can easily be extended to serve dynamically generated PDF content.</p>
Detect what browser your website is being accessed from using php (PHP)
2013-06-19T20:09:55-07:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578571-detect-what-browser-your-website-is-being-accessed/
<p style="color: grey">
PHP
recipe 578571
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/browser/">browser</a>, <a href="/recipes/tags/php/">php</a>, <a href="/recipes/tags/server/">server</a>).
</p>
<p>This is a short hack on how to figure out what OS you site is being accessed from. This is useful if you want to redirect to different versions of your site through php. </p>
Basic threaded Python TCP server (Python)
2012-09-19T17:59:01-07:00Luis Martin Gilhttp://code.activestate.com/recipes/users/4183220/http://code.activestate.com/recipes/578247-basic-threaded-python-tcp-server/
<p style="color: grey">
Python
recipe 578247
by <a href="/recipes/users/4183220/">Luis Martin Gil</a>
(<a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/server/">server</a>, <a href="/recipes/tags/tcp/">tcp</a>, <a href="/recipes/tags/thread/">thread</a>).
Revision 3.
</p>
<p>TCP provides reliable, ordered delivery of a stream of bytes from a program on one computer to another program on another computer. Sometimes you need a quick deployment of a TCP server and here I bring to you a Python 2.* snippet of a threaded Python server.</p>
A MSSQL XML importer for MySQL (Python)
2011-03-09T03:46:49-08:00Albert Perrien IIhttp://code.activestate.com/recipes/users/4177266/http://code.activestate.com/recipes/577601-a-mssql-xml-importer-for-mysql/
<p style="color: grey">
Python
recipe 577601
by <a href="/recipes/users/4177266/">Albert Perrien II</a>
(<a href="/recipes/tags/mysql/">mysql</a>, <a href="/recipes/tags/server/">server</a>, <a href="/recipes/tags/sql/">sql</a>, <a href="/recipes/tags/xml/">xml</a>).
</p>
<p>This is a simple function that takes records exported to XML from SQL Server or Access and imports them into MySQL. </p>
SimpleCryptSocketExt - SimpleCrypt Wrapper for Easy Socket, Client / Server Encryption (Python)
2010-05-07T15:33:06-07:00AJ. Mayorgahttp://code.activestate.com/recipes/users/4173476/http://code.activestate.com/recipes/577212-simplecryptsocketext-simplecrypt-wrapper-for-easy-/
<p style="color: grey">
Python
recipe 577212
by <a href="/recipes/users/4173476/">AJ. Mayorga</a>
(<a href="/recipes/tags/client_server/">client_server</a>, <a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/server/">server</a>, <a href="/recipes/tags/socket/">socket</a>).
Revision 5.
</p>
<p>Lightweight drop-in encryption wrapper for various Client/Server solutions supporting
protocols such as UDP, TCP, HTTP, HTTPS, FTP, RAW Sockets etc.</p>
Very Simple HTTP Web Server (Python)
2010-05-12T11:20:07-07:00TheMachineCharmerhttp://code.activestate.com/recipes/users/4167676/http://code.activestate.com/recipes/576541-very-simple-http-web-server/
<p style="color: grey">
Python
recipe 576541
by <a href="/recipes/users/4167676/">TheMachineCharmer</a>
(<a href="/recipes/tags/http/">http</a>, <a href="/recipes/tags/server/">server</a>, <a href="/recipes/tags/web/">web</a>, <a href="/recipes/tags/web_server/">web_server</a>).
Revision 2.
</p>
<p>This is very very simple HTTP web server.</p>
Basic FTP with Python (Python)
2008-12-07T01:18:52-08:00Jonny Reeveshttp://code.activestate.com/recipes/users/4167414/http://code.activestate.com/recipes/576525-basic-ftp-with-python/
<p style="color: grey">
Python
recipe 576525
by <a href="/recipes/users/4167414/">Jonny Reeves</a>
(<a href="/recipes/tags/basic/">basic</a>, <a href="/recipes/tags/ftp/">ftp</a>, <a href="/recipes/tags/send/">send</a>, <a href="/recipes/tags/server/">server</a>, <a href="/recipes/tags/web/">web</a>, <a href="/recipes/tags/web_server/">web_server</a>).
Revision 2.
</p>
<p>Sending files to a web server via FTP.</p>