Popular recipes tagged "meta:loc=306"http://code.activestate.com/recipes/tags/meta:loc=306/2007-01-23T10:51:39-08:00ActiveState Code Recipesxmlrpc server/client which does cookie handling and supports basic authentication (Python)
2007-01-23T10:51:39-08:00Vaibhav Bhatiahttp://code.activestate.com/recipes/users/4007166/http://code.activestate.com/recipes/501148-xmlrpc-serverclient-which-does-cookie-handling-and/
<p style="color: grey">
Python
recipe 501148
by <a href="/recipes/users/4007166/">Vaibhav Bhatia</a>
(<a href="/recipes/tags/web/">web</a>).
</p>
<p>xmlrpc server client which do the following:
* client sends a request with basic authentication
* server on successful authentication sends response back and also sends cookies with authentication id
* these cookies are saved by client and then used for authentication on any subsequent requests</p>
Vpython example (Python)
2004-12-29T20:08:26-08:00Matthew Sherbornehttp://code.activestate.com/recipes/users/2235063/http://code.activestate.com/recipes/361168-vpython-example/
<p style="color: grey">
Python
recipe 361168
by <a href="/recipes/users/2235063/">Matthew Sherborne</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>An example done to solve this problem:</p>
<p><a href="http://acm.uva.es/p/v1/101.html" rel="nofollow">http://acm.uva.es/p/v1/101.html</a></p>
<p>Animation by vpython (visual python): <a href="http://vpython.org/" rel="nofollow">http://vpython.org/</a></p>
<p>Provides some 3d coolness for new pythonists. Shows some stack usage. Probably should be shorter.</p>
<p>In the __main__ statement at the bottom, replace test2() with parse(), then type something like this on each line:
10
move 5 onto 1
pile 1 onto 3
move 6 over 2
pile 3 over 2
etc.</p>
<p>See the problem link at the top for full instructions...</p>