wait, it occurs to me that HEAD will only return the response headers containing the information you need. when you run okhttputils2, it assumes you're expecting a payload (some kind of file). there is no payload with HEAD, just the headers, so okhttputils2 shows nothing, giving the impression it isn't working. you have to specifically ask for the headers. i'll put something together for you, unless someone else beats me to it. HEAD is the only way you can if some resource is on the server without actually downloading it. that's the way to go.
Last edited: Sep 30, 2020
"A little kindness - as little as required by applicable law."
"It can't hurt to read the thread before replying."
"Show code; code always does what you tell it to do, not always what you tell us it does."