Dim jo As JavaObject = HttpUtils2Service.hc
Dim client As JavaObject = jo.GetField("client")
Dim r As Reflector
r.Target = client.RunMethod("cookieJar", Null)
Dim CookieManager As JavaObject = r.GetField("cookieHandler")
Dim cookieStore As JavaObject= CookieManager.RunMethodJO("getCookieStore",Null)
Dim uri As Uri
uri.Parse("https://www.mywebsite.com")
Dim NewCookie As JavaObject
NewCookie.InitializeNewInstance("java.net.HttpCookie",Array("s","123456789"))
Log(NewCookie.RunMethod("getName",Null))
Log(NewCookie.RunMethod("getValue",Null))
cookieStore.RunMethod("add", Array(uri, NewCookie ))