S
shacoof
I am trying to use the URL class in order to emulate browser behavior.
the scenario I'm working on is as follow :
call a web-application - page a
read page a , inside the page I find an <img src=.../some-servlet>
I just need the img so I write just this tag to the out stream (e.g.
the html that the page create).
When the browser get the html with the img tag it perform the call, but
the img is not returned properly.
I believe that this is happening because the application return data
using cookies mechanism or something like that, this data is lost
because it didn't pass to the html.
How can I solve the problem ?
the scenario I'm working on is as follow :
call a web-application - page a
read page a , inside the page I find an <img src=.../some-servlet>
I just need the img so I write just this tag to the out stream (e.g.
the html that the page create).
When the browser get the html with the img tag it perform the call, but
the img is not returned properly.
I believe that this is happening because the application return data
using cookies mechanism or something like that, this data is lost
because it didn't pass to the html.
How can I solve the problem ?