Re: [Pharo-users] ZnClient POST then GET of different URL path, GET has POST's entity

2018-01-16 Thread Sven Van Caekenberghe
Hi Paul, Your analysis is correct: #resetEntity is (by default) only called before executing HEAD and DELETE methods and not (by default) before a GET (nor a PUT or POST). The reason is that ZnClient is (also) a builder to construct requests. One of the features of the builder is that it lets

[Pharo-users] ZnClient POST then GET of different URL path, GET has POST's entity

2018-01-15 Thread PAUL DEBRUICKER
Hi - Should #resetEntity be called automatically for long lived sessions ? I see that it is called automatically for HEAD and DELETE methods. If you do a |client | client:=ZnClient new. client get: 'http://example.com/getPath' client inspect client post: 'http://example.com' contents:'My