Scraping data from http using cookies
I'm trying to scrape some data from http, using URL and URLConnection.
I'm connecting to the site and saving the Set-Cookie string 'ASP.NET_SessionId=xrtmpu55c31ugk45qd2uc2qw; path=/; HttpOnly' (expires at end of session).
When I open the second URLConnection and using urlConn1.setRequestProperty("Cookie", cookie); I dont get the data, I get data like I have no cookie. However it don't send a Set-Cookie (new cookie) from the http server..
Any ideas?
It works fine when I try in a browser..