logo       

Re: XML Post: msg#00152

lang.smalltalk.squeak.beginners

Subject: Re: XML Post

Il giorno ven, 17/08/2007 alle 17.01 +1200, Nick Ager ha scritto:
> Hi,
> I'm trying to perform an HTTP-POST an XML document to a server. I
> tried using HTTPSocket httpPostDocument:args:accept:request:
> However I'd like 'Content-type' to be set to 'text/xml' in the post
> header and the implementation of httpPostDocument:args:accept:request:
> contains:
> 'Content-type: application/x-www-form-urlencoded', CrLf,
> I've hacked my own version, but I feel I'm missing something. Is there
> a better way to do this in Squeak/Seaside.

Hi Nick,

my suggestion is to use libcurl with CurlPlugin. The interface is a bit
rough, but it's much more powerful.

Giovanni


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise