HTTPClient that can return the http code, headers and response?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

HTTPClient that can return the http code, headers and response?

Danie Roux-3
All,

Is anyone aware of a HTTPClient that can return the following:

- The HTTP code (404, 200 etc.)
- The HTTP headers
- The HTTP response

... and also supports the HTTP methods DELETE, OPTIONS and HEAD.

The standard HTTPClient throws away all that and just return the HTTP
response as a string.

--
Danie Roux *shuffle* Adore Unix - http://danieroux.com

Reply | Threaded
Open this post in threaded view
|

Re: HTTPClient that can return the http code, headers and response?

Danil Osipchuk-2
Hello Danie,

I think the plugin to the libcurl library ( http://wiki.squeak.org/squeak/5865 ) can do most of what you need right now. I didn't manage to polish it up to the end, but I'm sure that with a feedback we can finish it incrementaly

Danil

2007/12/23, Danie Roux <[hidden email]>:
All,

Is anyone aware of a HTTPClient that can return the following:

- The HTTP code (404, 200 etc.)
- The HTTP headers
- The HTTP response

... and also supports the HTTP methods DELETE, OPTIONS and HEAD.

The standard HTTPClient throws away all that and just return the HTTP
response as a string.

--
Danie Roux *shuffle* Adore Unix - http://danieroux.com




Reply | Threaded
Open this post in threaded view
|

Re: HTTPClient that can return the http code, headers and response?

Giovanni Corriga
In reply to this post by Danie Roux-3
Danie Roux ha scritto:

> All,
>
> Is anyone aware of a HTTPClient that can return the following:
>
> - The HTTP code (404, 200 etc.)
> - The HTTP headers
> - The HTTP response
>
> ... and also supports the HTTP methods DELETE, OPTIONS and HEAD.
>
> The standard HTTPClient throws away all that and just return the HTTP
> response as a string.

Hi Danie,

here are the instructions to install the libCurl Plugin, plus some
modifications I've made to make it support custom headers:

        http://blogs.corriga.net/giovanni/archives/tags/curlplugin

Many posts in my Restful Web Services in Squeak series can be used as
examples for using libCurl.

        Ciao,

                Giovanni