0

I'm using socketserver on java and listening to port 8080, and my browser sends me header Infos. So how can I retrieve a Web page using this headers with my injected headers?

Walker
  • 131
  • 2
  • 16
  • Could you explain that with more details? I don't understand your question. [ask] – zapl Jun 03 '16 at 13:44
  • @zapl Okay then, http://www.datafilehost.com/d/d439b2c7 This is a project that similar to mine. It gets response from browser, connects to the requested url, gets data and sends to browser back. I need a similar code to this. – Walker Jun 03 '16 at 15:00

1 Answers1

0
((WebView)view).getSettings().setUserAgentString("like in browser");
Petrov Dmitrii
  • 228
  • 1
  • 10
  • Well, I don't want to open a webview. I will send response to a browser (for example Opera) – Walker Jun 03 '16 at 14:54