<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
hello there,<br>
a question that keeps me puzzled for some time now:<br>
<br>
basically i want to fetch the output from an http page. The page exists out of an input field and a button to calculate my data.<br>
The problem is that I simply cannot get my hands on the output, but only on the page itself.<br>
<br>
Image that the following URL ( http://10.10.10.10:8765/?command=foo&inputfield=bar ) gives as result :<br>
a = xx<br>
b = yy<br>
<br>
My intention is to fetch the output so that I can play with it.<br>
<br>
this is what I do :<br>
<br>
import httplib<br>
connection = httplib.HTTPConnection('10.10.10.10:8765')<br>
connection.request('POST', 'command=foo', 'inputfield=bar')<br>
response = connection.getresponse()<br>
output = response.read()<br>
print output<br>
<br>
I get a lot of stuff in my output, but simply NOT the a=xx and the b = yy.<br>
What the heck am I doing wrong ?<br>
<br>
<br>
<br><br /><hr />Deel al je foto's met je vrienden! Maak je eigen online plek! <a href='http://spaces.live.com' target='_new'>Windows Live Spaces</a></body>
</html>