• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

get content of html

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks dude, I tested with HttpClient and it works!!


words can't say enougth how grateful I am
 
You get good luck from rubbing the belly of a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic