Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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:
VB
...

  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

...

How write the cookies container in java? thanks!
Posted
Updated 17-Jul-14 22:25pm
v4
Comments
[no name] 17-Jul-14 10:14am    
It is highly likely that no one here is going to do this work for you. We are not a code translation service.
Member 10839037 17-Jul-14 10:24am    
I know, I am also searching for how to do it ...
[no name] 17-Jul-14 10:41am    
If you know that we are not a code translation service then why are you asking someone to do this for you? There is nothing to "search" for. Take line one, translate the code to java, go to next line, repeat.
Member 10839037 17-Jul-14 10:44am    
OK, where i can do that?
[no name] 17-Jul-14 11:09am    
Where can you do what?

1 solution

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900