В Wed, 07 Mar 2012 10:14:29 +0100
Nicolas Cannasse <[email protected]> пишет:

> Le 06/03/2012 10:41, Alexander Konotop a écrit :
> > В Mon, 05 Mar 2012 21:24:53 +0100
> > Nicolas Cannasse<[email protected]>  пишет:
> >
> >> Le 05/03/2012 21:12, Alexander Konotop a écrit :
> >>> I've improved my HelloWorld - maked it to use threads and sending
> >>> http requests. It's compiling and and starting - so it seems like
> >>> You are right - my neko build works and I have some kind of
> >>> variable name conflict (btw specific for 1.8.2 and not for 1.8.1).
> >>> But I have no "$" symbols at all - I've searched in a code
> >>> directory with midnight commander - there are none of them. But
> >>> it's OK - I hope I'll find which variable has wrong name - maybe
> >>> another symbol or name causes a problem. Another thing is far more
> >>> interesting: neko 1.8.1 fits for me enough and I didn't use 1.8.2
> >>> before. Today I wanted just to test my project in 1.8.2 to make
> >>> sure that I've found a bug. Now I see that I've unfortunately
> >>> found it and 1.8.2 (+ haxe 2.08) behaviour doesn't differ from
> >>> 1.8.1 (+haxe 2.07). Please look at this simple example - maybe
> >>> I've just made a mistake in the code:
> >>
> >> Any reason you want to directly set the post data content ? Usually
> >> you would instead set a POST parameter with http.setParameter
> >> instead.
> >>
> >> Best,
> >> Nicolas
> >>
> >
> > Payment systems (like webmoney.ru) and social networks use XML or
> > JSON requests. To send XML/JSON I need setPostData() without any
> > parameters. setParameter() won't fit because I need just "{JSON}"
> > but not "param={JSON}". Currently I use such requests everywhere in
> > the project, but only either for js or for neko+hxCurl. This time I
> > tried to use neko without hxCurl.
> 
> Could you check the following :
> a) try setPostData(StringTools.urlEncode(data))
> b) try setPostData("\r\n"+StringTools.urlEncode(data))
> 
> Tell me if that works for you
> 
> Best,
> NIcolas
> 
> 

Thank You very much, Nicolas!
urlEncode() I tried before - it didn't work.
But "\r\n" helped!

Best regards
Alexander

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to