I am currently writing a program that reads information in from certain websites.
I have looked at two ways of doing this: (1) Using Jsoup and (2) using URLconnection.
When I access a particular website, the URLconnection can parse the HTML fine (its just slower), whereas Jsoup seems to come up with 403 forbidden errors on particular websites (however, it works perfectly fine with websites such as google.com etc).
There are no errors in the code, so I'm not looking for a fix currently. I am just wondering why Jsoup will get a forbidden connection with particular websites whereas the java.net.URLConnection allows access to the exact same site without being forbidden?