Hi,
I have a scenario where I need to login to some web app and then reuse the session/cookies in further requests.
The basic approach (as presented in Enterprise Pharo book) works just fine
client := ZnClient new.
client
formAt: 'password' put: 'trustno1';
post.
client��
The problem is when I want to change the way response is retrieved. E.g.
client
accept: 'text/json';
contentReader: [ :entity | STON fromString: entity contents ];
"uh-oh... it still uses STON contentReader"
client
Of course I could manually copy all the cookies, however I imagine there is a better approach. Maybe injecting session from one ZnClient instance to another?
Thanks,
Peter