I need to to remove cookies before sending a request with OkHttp:
But I get a null pointer exception when trying to remove the cookie header at line 3.
OkHttp and OkHttpUtils2 are included.
What could be wrong?
B4X:
Dim job1 As HttpJob
job1.Initialize("Job1", Me)
job1.GetRequest.RemoveHeaders("Cookie")
job1.Download(url)
But I get a null pointer exception when trying to remove the cookie header at line 3.
OkHttp and OkHttpUtils2 are included.
What could be wrong?