Ulf Dittmer wrote:
ss sk wrote:
Ulf Dittmer wrote:If you used HttpClient for all requests, you could turn on its cookie support (which is, I assume, how authentication is controlled after a login).
Apologize i dont quite understand your statement, can you show me where to change. Thanks.
You're using HttpUrlConnection for the POST method, but HttpCLient for the GET method. If instead you were using HttpClient for both methods, you could use its cookie support for tracking any login cookies that may be set by the login (assuming cookies are used for that, which you need to find out).
Also, you need to change your display name -which is invalid- or your account will be closed soon.
Jesper de Jong wrote:Welcome to the Ranch.
You first have to find out how exactly the server sends the alert.
Rob Spoor wrote:And welcome to the Ranch!
Ulf Dittmer wrote:If you used HttpClient for all requests, you could turn on its cookie support (which is, I assume, how authentication is controlled after a login).