Maybe use a different user-agent header? Sendt fra min iPhone
> Den 14. feb. 2015 kl. 18.04 skrev jeevi tesh <[email protected]>: > > Hi, > Below URL's web page content I'm not able to get using httpclient. Please > help me in this regard > http://parts.arrow.com/item/search/?utm_campaign=arrowMain&utm_medium=link&utm_source=arrow&utm_content=www.arrow.com#st=ABLS-7.3728MHZ-B2-T;reNwlT > > Here is my piece of code > > HttpGet httget = new HttpGet(" > http://parts.arrow.com/item/search/?utm_campaign=arrowMain&utm_medium=link&utm_source=arrow&utm_content=www.arrow.com#st=ABLS-7.3728MHZ-B2-T;reNwlT > "); > > HttpClient httpclient = new DefaultHttpClient(); > HttpResponse response = httpclient.execute(httget); > HttpEntity entity = response.getEntity(); > String thirdPartyPageContent=EntityUtils.toString(entity); > System.out.println(thirdPartyPageContent); > > I'm not getting actual page content. > > If any insight will be greatly appreciated. > > Thanks > jeevitesh --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
