[Seaside] ZnUnknownHttpVersion

lanvin.kevin at laposte.net lanvin.kevin at laposte.net
Thu Mar 6 16:49:51 UTC 2014


I've taken a new Pharo 3.0 image on pharo.orgThen I loaded Zinc-REST from your repository : http://smalltalkhub.com/#!/~SvenVanCaekenberghe/ZincHTTPComponentsI executed the code : 

| server |server := ZnServer startOn: 1700 .server delegate: (ZnRestServerDelegate new uriSpace: (ZnCallHierarchyRestUriSpace new rootClass: ZnExampleSumRestCall;yourself); yourself).(ZnClient new) get: 'http://localhost:1700/appName?action=&firstParameter=["Value"]&secondParameter=["Value"]&lastParameter={ "Key":["firstValue","secondValue"]}'
The error occured.Is there something missing in my image ?
Thank you for your patience
> Message du 06/03/14 17:20
> De : "Sven Van Caekenberghe"
> A : lanvin.kevin at laposte.net, "Seaside - general discussion"
> Copie à :
> Objet : Re: [Seaside] ZnUnknownHttpVersion
>
> Kevin,
>
> On 06 Mar 2014, at 16:55, lanvin.kevin at laposte.net wrote:
>
> > It's working on a seaside server, but not on a RestServer.
> > This code should show you the problem.
> >
> > | server |
> > server := ZnServer startOn: 1700 .
> > server delegate:
> > (ZnRestServerDelegate new
> > uriSpace: (ZnCallHierarchyRestUriSpace new
> > rootClass: ZnExampleSumRestCall;
> > yourself);
> > yourself).
> >
> >
> >
> >
> > (ZnClient new) get: 'http://localhost:1700/appName?action=&firstParameter=["Value"]&secondParameter=["Value"]&lastParameter={ "Key":["firstValue","secondValue"]}'
>
> Which works for me, sorry, it gives:
>
> a ZnResponse(404 Not Found text/plain;charset=utf-8 34B)
>
> You still haven't said anything about which versions of Pharo/Zinc you are using, on which platform you are.
>
> Sven
>
> > Regards.
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140306/d582ca20/attachment-0001.htm


More information about the seaside mailing list