AdrenalinE Posted July 8, 2011 Posted July 8, 2011 replace this line: isr = new InputStreamReader(url.openStream()); with these: URLConnection con = url.openConnection(); con.addRequestProperty("User-Agent", "Mozilla/4.76"); isr = new InputStreamReader(con.getInputStream()); 1 error on URLConnection con = url.openConnection(); :S how i can replace this? Quote
Rizel Posted July 8, 2011 Author Posted July 8, 2011 remove the sun.net.www.. line from the imports and import the java.net.URLConnection Quote
FFs Posted July 8, 2011 Posted July 8, 2011 remove the sun.net.www.. line from the imports and import the java.net.URLConnection It works perfectly now :D Thanx! Quote
AdrenalinE Posted July 8, 2011 Posted July 8, 2011 remove the sun.net.www.. line from the imports and import the java.net.URLConnection work perfectly now , thanks you Quote
mfausb Posted July 9, 2011 Posted July 9, 2011 Funky fix but why not HttpURLConnection instead of the URLConnection? Quote
NitroHazeX7 Posted July 9, 2011 Posted July 9, 2011 Ive tried what all of you said.. but im still getting the 403 error, i even tried to add application settings and still the same url = new URL(hz_http); URLConnection con = url.openConnection(); con.setRequestProperty("CONTENT-TYPE", "application/x-www-form-urlencoded"); con.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 6.0; el; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18 ( .NET CLR 3.5.30729; .NET4.0C)"); con.setRequestProperty ("From", "Mozilla"); isr = new InputStreamReader(con.getInputStream()); PS: About the useragent, yes i tried adding Mozilla/4.76 and i still got a 403 EDIT: Nevermind fixed. Quote
darknessneo Posted July 12, 2011 Posted July 12, 2011 no more works... hopzone owned the fix... Quote
Rizel Posted July 12, 2011 Author Posted July 12, 2011 I can't open hopzone at all. Website Currently Unavailable The website you are trying to access is currently unavailable. Please try again at a later time. I guess this is why it doesn't work Quote
v1hack Posted July 12, 2011 Posted July 12, 2011 rizel cheater lol yes they down now site up and works fine Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.