[squeak-dev] Re: HTTP Client

Andreas Raab andreas.raab at gmx.de
Wed May 5 05:17:40 UTC 2010


On 5/4/2010 1:58 PM, christophe.jalady at free.fr wrote:
> I search for a simple HTTP client which give me access to the "response header".
> Actually, I search for a "mature&  almost complete" HTTP client implementation.

Thanks for the question. You just pushed me over the edge to finally 
release WebClient and WebServer, see 
http://www.squeaksource.com/WebClient.html :-)

I hope this serves your needs. If it doesn't I'd be interested in 
knowing what you think is missing.

Cheers,
   - Andreas

> I have found severals:
>
> * HTTPSocket:
> Do not give access to the response header and it is limited.
>
> * HTTPClient:
> Too limited.
>
> * SptHTTPRequest (From Universe->Network->HTTPClient version 19)
>   http://universes.dnsalias.net:8888/universes/repositories/stable-3.7/SWHTTPClient-bkv.19.mcz
> This one looks ok ... but this version does not work ! (I get a BlockClosure
> does not understand #deferredValue) try running the simple test:
> |request|
> request := SptHTTPRequest new.
> request openGetTo: 'http://www.google.fr'.
> request send; waitOnReady.
>
> * HC HTTPClient
> http://map.squeak.org/package/8644a5ff-923c-438f-b5b0-a281de346040
> Looks good but I did not find any sources !
>
> * I have read something about reusing libcurl but it looks completely sensless
> for me ...
>
> I am using Squeak 4.1 (andr Pharo 1.0 to)
>
> So:
> - Did somone know how to fix SptHTTPRequest or where to find the source code of
> " HC HTTPClient"
> - Did someone know a real working solution for doing HTTP queries ?
>
> Thank you for your help.
>
> Christophe.
>
>




More information about the Squeak-dev mailing list