JSoup UserAgent, how to set it right?

Document doc = Jsoup. Connect("https://facebook.com/"). Referrer("google.com").

UserAgent("Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6").get().

You might try setting the referrer header as well.

It's likely that Facebook is setting (and then expecting) certain cookies in its requests, and considers a header that lacks any to be a bot/mobile user/limited browser/something else.

I found a solution: I had to simply find my proxy and set it in my code. Also, you might need to set the user agent. I left the "referrer" code in there, although I don't think it's necessary in most cases.

Note that the userAgent is made up in case the web server you're accessing discriminates against machines.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions