Re: Problem with Zinc?
Posted by
Sven Van Caekenberghe on
May 15, 2012; 3:17pm
URL: https://forum.world.st/Problem-with-Zinc-tp4630319p4630326.html
Damien,
On 15 May 2012, at 16:42, Damien Cassou wrote:
> ZnClient new
> systemPolicy;
> multiPartFormDataEntity;
> http;
> host: '
http://code.google.com';> path: '/p/pharo/issues/entry.do';
> queryAt: 'summary' put: 'A summary text', Date today asString;
> queryAt: 'comment' put: 'A short comment';
> post
Please try:
ZnClient new
logToTranscript;
http;
host: 'code.google.com';
path: '/p/pharo/issues/entry.do';
formAt: 'summary' put: 'A summary text', Date today asString;
formAt: 'comment' put: 'A short comment';
post.
It still gives a bad request. I suppose you are trying to submit a form, maybe you did not add enough form fields, maybe you need a session id or cookie, or authentication.
The hang occured in my 1.4 image as well and is probably related to the '
http://' in the host field and DNS resolving. I can't say for sure, since I couldn't do an interrupt and debug.
HTH,
Sven
--
Sven Van Caekenberghe
http://stfx.euSmalltalk is the Red Pill