browser - Is there any way to pass http headers when I use desktop.browse method in java? -
i want use browse()
method java.awt.desktop
class open web page, problem need set http headers specific values cookies.
how that? if desktop.browse() not suitable, there other solution allows me open browser window mentioned status above?
desktop.browse(...)
lauches default browser url give it. cannot influence browser sends request uri, browser. if know browser opened might manipulate session storage on disk before launching it, not recommend this. if session-cookie, might able give session cookie url parameter instead, depends on webserver querying , have try whether work.
other that, download url in java code, setting headers like, store result temporary file , open file uri via desktop.browse(...)
.
Comments
Post a Comment