I am trying to get response of youtube.com using java with JSoup. 

I am able to get the response of youtube using JSoup as follows, it returns the desktop website's response

```
         String str = "https://www.youtube.com/";
         doc = Jsoup.connect(str)
                    .userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36")
                    .get();                

```

Same way, I am trying to get the response for mobile version to this same site as follows,

```
            doc = Jsoup.connect("https://"+url2.getHost()+"/search?q="+q)
                        .userAgent("Mozilla/5.0(Linux; U; Android 2.2; en-gb; LG-P500 Build/FRF91) AppleWebKit/533.0 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1")
                        .get();             

```

But this gives only desktop/laptop version response and not the mobile response.

How to get the mobile response from jsoup.

Thanks in advance.