Im trying to improve the Java Html Document a little but i'm running into problems with the HttpUrlConntion
. One thing is that some servers block a request if the user agent is a Java VM. Another problem is that the HttpUrlConnection
does not set the Referrer
or Location
header field. Since several sites use these fields to verify that the content was accessed from their own site, I'm blocked here as well. As far as I can see the only resolution is to replace the URL handler of the HTTP protocol. Or is there any way to modify the default HTTP Handler?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…