Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

get content of html  RSS feed

 
Mike Phillip
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I need to get The content of a site (that I know how to do).

The problem is that I first have to send some parameters to validade, then send another url which will get the url I want to get, it's like this:

http://www3.sitedomain.com/csp/web1/validate.csp?Loggin=1512800710&Pass=21ta93&EP=PAC&LCL=SL

Loggin, Pass, EP and SL are the parameters to the first url. then I Have to enter:

http://www3.sitedomain.com/csp/web1/display.csp?LIS=1

LIS is the parameter to the url. after entering these two url I will have the html I want to get.


How can I do that? When I put the first url in the browser and then the second it works fine, but I need to make it automatic.

the thing if, in my java program when I try to enter the second url it gives an error because it lost the data from the first.

thanks

any tips?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What code are you using?

I think the Apache HttpClient library will keep track of cookies (assuming that is what is used to remember the client between the 1st and the 2nd access).
 
Mike Phillip
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks dude, I tested with HttpClient and it works!!


words can't say enougth how grateful I am
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!