urllib ??

Rainer rainer at cs.uu.nl
Mon Nov 4 09:09:09 EST 2002


hi alan
this is the problem, maybe i put it the wrong way.
i DO NOT get the results from the server. the thing that is stored in 
'results', is the 'query-webpage' with the values filled in, not the results 
page.

rainer



>
>To me, this does not make sense.
>
>"Pressing of the Submit Button" only happens in browsers.
>
>What you are doing above in your code is executing the same series of
>actions as happens, behind the scenes, in a browser, when a user presses
>a submit button.
>
>You say you want to "get the result from the server". But the line of
>code
>
>results = urllib.urlopen(url,query).read()
>
>Does exactly that. It opens a URL connection, transmits query data to
>that URL, reads the results that come back, and names them with the name
>"results".
>
>Am I missing something here?
>
>regards,
>
>-- 
>alan kennedy
>-----------------------------------------------------
>check http headers here: http://xhaus.com/headers
>email alan:              http://xhaus.com/mailto/alan




More information about the Python-list mailing list