将VB.NET的功能转换为android java .. [英] Convert function of VB.NET to android java..
本文介绍了将VB.NET的功能转换为android java ..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好!我通常不会在网站上提问,但现在我无法在我的应用上做点什么。这非常重要..
我发现在vb.net中是怎么做到的:
Hello! I no usual to ask questions in sites, but now I can't do something on my app. this very important..
I found how do that in in vb.net:
...
Private cookieCont As New Net.CookieContainer()
Protected Overrides Function GetWebRequest(ByVal address As System.Uri) As System.Net.WebRequest
Dim wr = MyBase.GetWebRequest(address)
If TypeOf wr Is Net.HttpWebRequest Then
With DirectCast(wr, Net.HttpWebRequest)
.CookieContainer = cookieCont
If lastPage IsNot Nothing Then
.Referer = lastPage
End If
End With
End If
lastPage = address.ToString()
Return wr
End Function
...
如何在java中编写cookies容器?谢谢!
How write the cookies container in java? thanks!
推荐答案
[ Dot Net Conversions ]
查看链接
或者看到这个https://www.varycode.com/ [不同的代码]
这篇关于将VB.NET的功能转换为android java ..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文