2010-08-22 117 views

回答

0

或者,如果你想爲pharosqueak

+0

WebClient已經非常強大。 – nes1983 2010-09-27 13:44:25

1

要安裝Web客戶端做更多的東西與他們,海邊一鍵圖片:

(Installer ss project: 'WebClient') 
    install: 'WebClient-Core' 

然後

response := WebClient httpGet: 'http://www.google.com/'. 
headers := response headers. "An OrderedCollection of headername -> headervalue" 
body := response content. 
5

或者使用新的Zinc framework,如:

| response content headers | 

response := ZnClient new 
    url: 'http://stackoverflow.com'; 
    get; 
    response. 

content := response contents. 
headers := response headers.