2010-06-11 2 views

답변

9
import urllib 

URL = "http://host.domain.tld/resource" 
XML = "<xml />" 

parameter = urllib.urlencode({'XML': XML}) 

a).

1

표준 http 게시 요청을 통해이를 달성 할 수 있습니다. 간단한 해결책 것

response = urllib.urlopen(URL + "?%s" % parameter) 
print response.read() 

을 HTTP GET을 사용하여 HTTP POST

response = urllib.urlopen(URL, parameter) 
print response.read() 

B)을 사용

관련 문제