CurlPlugin (call for testing)

danil osipchuk danil at mtsnet.ru
Thu Oct 12 15:17:35 UTC 2006


On Thu, 12 Oct 2006 17:08:38 +0300, Todd Blanchard <tblanchard at mac.com>  
wrote:

>
> On Oct 12, 2006, at 1:01 AM, John M McIntosh wrote:
>> Ok, I compiled it and ran the
>>
>> Curl new getContentsUrl: 'http://www.squeak.org/'
>> which then gives me
>> '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:/....
>>
>
> That's nifty.  Can you get the http headers too?
>

Something like this?

(Curl new
	onGetHeader;
	getContentsUrl: 'http://www.squeak.org/') ->

'HTTP/1.1 200 OK
Date: Thu, 12 Oct 2006 14:17:28 GMT
Server: Comanche/6.2 (unix)
Cache-Control: no-cache
X-Wiki-Copyright: Software Composition Group, University of Berne, 2003
X-Wiki-Engine: SmallWiki 0.9.23
Content-type: text/html
Content-length: 12554

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html  
xmlns="http://www.w3.org/1999/xhtml"



More information about the Squeak-dev mailing list