httpresponse - 302 Found Response for google.com -


i have java program forwards http request clients internet , write response client. when clients trying google.com browser getting 302 found response internet.

here request client :

get http://google.com/ http/1.1 host: google.com proxy-connection: keep-alive cache-control: max-age=0 accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 user-agent: mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/41.0.2272.118 safari/537.36 opr/28.0.1750.51 dnt: 1 accept-encoding: gzip, deflate, lzma, sdch accept-language: en-us,en;q=0.8 cookie: pref=id=0168c274e46046ff:ff=0:ld=en:tm=1427909641:lm=1428321915:gm=1:s=hgtpo1ahupud4nu2; sid=dqaaapgaaacoh1nuvcrnvjfjl-w4mtbtmqx9yy1wbra4lm7d8_uslxu_43zd4qrzl4ehqbuuknokfw0gd68vt7dltsgbroovrufdgelimp8321g2-ixjmtqwjjoi9ssm3yewc5zvntnyrwuhhbp-zzqimsahshvmvt8gev1wdfhs4oz74g219cekyzthkjsqlds_yz725qsikwjvbb_nlno5iqktz0q6jximrpzshzqvoq7ziwh9rfiiasphiifc1xdwrmzdcbonpkcke2qxztmxspfuhxubx53bjozfhurcajavihbaxofwzhur2bevtrule1w8blbt6agty9dt9gz9nvjeshzk; hsid=aso16-enwp4sicr5q; apisid=dihl_msdprkzseld/ajgwxxsjcwut9feuy; nid=67=dgywjrkohyqgdmpemmqvlnzzqllwgntxbaz8--pqetplz4sbl3abfnp40h0noi3ztb_6skdthwgjonmesstodr6vkmur0vst-6k34xvvqm9fqh_paomrk8o6kt0avd8fiitl7g7erjbvbwwiscuhiwzor2cj2r6acmnm27a 

this response got :

http/1.1 302 found cache-control: private content-type: text/html; charset=utf-8 location: http://www.google.co.in/?gfe_rd=cr&ei=uhw7vbe6h_pi8ae_qiciba content-length: 261 date: sat, 25 apr 2015 04:47:14 gmt server: gfe/2.0 alternate-protocol: 80:quic,p=1  <html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>302 moved</title></head><body> <h1>302 moved</h1> document has moved <a href="http://www.google.co.in/?gfe_rd=cr&amp;ei=uhw7vbe6h_pi8ae_qiciba">here</a>. </body></html> 

is because google using https instead of http. , trying redirect request...?

but how should process reply? send same response client. no redirection happening, should do?

from location header in http response, seems google detected call came india , it's redirecting call google india i.e. http://www.google.co.in/?gfe_rd=cr&ei=uhw7vbe6h_pi8ae_qiciba.

when 302 response client should react , follow call location header.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -