[Pharo-project] [COTDC] 3 - HTTPClient

Sven Van Caekenberghe sven at beta9.be
Sun Feb 6 20:03:50 CET 2011


On 06 Feb 2011, at 18:23, laurent laffont wrote:

> I'm a facade for doing simple HTTP GET/POST operations like downloading / uploading some content. 
> 
> For example, I get HTML content for http://www.pharo-project.org web page like this: HTTPClient httpGet: 'http://www.pharo-project.org'.

I'm a facade for doing simple HTTP GET/POST operations like downloading / uploading some content. 

For example, I get HTML content for http://www.pharo-project.org web page like this: 

	HTTPClient httpGet: 'http://www.pharo-project.org'.
	HTTPClient httpGetDocument: 'http://www.pharo-project.org'.

When successful, a Stream respectively a MIMEDocument is returned, in case of error, a String is returned.

	



More information about the Pharo-project mailing list