Can anyone please tell me that how we use Referer Header in android. As i am working on tool to check for vulnerable code and as using Referer header in an application is not safe so can please anyone tell me syntax for that in android..specifically.
Asked
Active
Viewed 4,966 times
0
-
Possible duplicate of - http://stackoverflow.com/questions/9903496/how-to-send-a-url-request-as-referer?rq=1 – sjain Jul 03 '13 at 09:44
1 Answers
0
With HttpGet
, HttpPost
you can edit the request headers:
HttpGet request = new HttpGet("http://your.url.com");
request.addHeader("Referer", "http://referer.url.com");
HttpResponse response = new DefaultHttpClient().execute(request);

Jong
- 9,045
- 3
- 34
- 66
-
thanks Jong for your reply.. but actually i want that vulnerable code for referer header – user2223987 Jul 03 '13 at 10:18