Hi Sven,
thanks a lot, I am a big step further now. Without your help it would not
be like that!
Regards
Sabine
2015-03-07 13:52 GMT+01:00 Sven Van Caekenberghe-2 [via Smalltalk] <
ml-node+s1294792n4810238...@n4.nabble.com>:
> As far as I can see, that is correct.
>
> If you do the following, y
As far as I can see, that is correct.
If you do the following, you can see your file echoed:
'/tmp/foo.txt' asFileReference writeStreamDo: [ :out | out << '123456' ].
ZnClient new
url: 'http://zn.stfx.eu/echo';
uploadEntityFrom: '/tmp/foo.txt';
post.
There is also #testUploadSmallDocument
Hi Sven,
I have one more question: how can I put a "--data-binary" part in the post?
I tried like this below but I get a 401 Unauthorized error. I assume that
my code below - the uploadEntityFrom: part - is wrong. The path is
correct, the file is there.
I want to write this in pharo:
(Command li
Hi Sven,
great - it seems to work. Thanks again!
I have another problem now which has to be checked with gini.
I will come back to you if there is something open.
Will your versions be included in the configurationOf for the next versions?
@Norbert: I used the curl string as a comment in a method
With the following version:
===
Name: Zodiac-Core-SvenVanCaekenberghe.38
Author: SvenVanCaekenberghe
Time: 5 March 2015, 10:50:20.718425 pm
UUID: e3136feb-d3ad-4e3e-b844-464737f0b9ea
Ancestors: Zodiac-Core-TheIntegrator.37
Change the semantics of ZdcSimpleSocketStream>>#fillReadBuffer to simply r
Basically, this is how you should do it (after loading NeoJSON):
ZnClient new
https;
host: 'user.gini.net';
path: 'api/users';
headerAt: 'Authorization' add: ('BEARER {1}' format: { #myToken });
accept: ZnMimeType applicationJson;
contentReader: [ :entity | NeoJSONReader fromString: en
Sabine,
you have double double quotes in your post data. If you use single quotes on
the commandline the content is not interpreted and you are sending "" and that
is not valid.
Norbert
> Am 05.03.2015 um 18:59 schrieb Sabine Manaa :
>
> Hi ,
>
> I want to write the following command in phar
Hi ,
I want to write the following command in pharo:
"curl -v -X POST --data '{""email"":""m...@gmail.com"",
""password"":""geheim""}' -H 'Content-Type: application/json' -H 'Accept:
application/json' -H 'Authorization: BEARER
d0ae-eaad-4335-a64b-8903470baa9f' 'https://user.gini.net/api/users