XML Post

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

XML Post

Nick
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.

My image is based on:
http://damien.cassou.free.fr/squeak-dev/beta/sq3.10-7137dev07.08.1.zip
Thanks in advance,
Nick
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: XML Post

Giovanni Corriga
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

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners