Adding Referer URL in jsp

by Vinoth 2009-11-13 15:40:59

If you want to add Referer URL while using java URL class. Just add the simple line with your code


URL url = new URL("http://100pulse.com");
URLConnection connection = url.openConnection();
connection.setRequestProperty("Referer", "http://zxc9.com");

Tagged in:

1981
like
1
dislike
0
mail
flag

You must LOGIN to add comments