Related Documentation : Cache Server User Guide : Using the RESTful Services : RESTful Code Samples : Python Code Samples
Python Code Samples
GET
import urllib2
f = urllib2.urlopen('http://localhost:8080/ehcache/rest/sampleCache2/2')
print f.read()
The server responds with:
<?xml version="1.0"?>
<oldjoke>
<burns>Say <quote>goodnight</quote>,
Gracie.</burns>
<allen><quote>Goodnight,
Gracie.</quote></allen>
<applause/>
</oldjoke>
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback