Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/10/2015, 09:00
talle
 
Fecha de Ingreso: junio-2003
Ubicación: Sevilla
Mensajes: 210
Antigüedad: 20 años, 10 meses
Puntos: 1
Pregunta Extraña redirección de Google con cUrl

Sabemos que Google dependiendo del país que te encuentres, aunque escribas el dominio principal google.com, te redirecciona a su dominio local (google.es, google.co.uk, google.nl,...). No entiendo por qué motivo con un VPS con IP española (37.252.96.60) y un centro de datos en España (supongo), al comprobar la redirección de google.com mediante cUrl me dice que redirecciona al Google alemán (google.de).

Alguien me lo puede explicar?..

Código Apache:
Ver original
  1. # curl -v [url]www.google.com[/url]
  2. * About to connect() to [url]www.google.com[/url] port 80 (#0)
  3. *   Trying 216.58.210.164... connected
  4. * Connected to [url]www.google.com[/url] (216.58.210.164) port 80 (#0)
  5. > GET / HTTP/1.1
  6. > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
  7. > Host: [url]www.google.com[/url]
  8. > Accept: */*
  9. >
  10. < HTTP/1.1 302 Found
  11. < Cache-Control: private
  12. < Content-Type: text/html; charset=UTF-8
  13. < Location: [url]http://www.google.de/?gfe_rd=cr&ei=5nIjVtL_Ioet8wf0j4voCA[/url]
  14. < Content-Length: 258
  15. < Date: Sun, 18 Oct 2015 10:22:30 GMT
  16. < Server: GFE/2.0
  17. <
  18. <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
  19. <TITLE>302 Moved</TITLE></HEAD><BODY>
  20. <H1>302 Moved</H1>
  21. The document has moved
  22. <A HREF="http://www.google.de/?gfe_rd=cr&amp;ei=5nIjVtL_Ioet8wf0j4voCA">here</A>.
  23. </BODY></HTML>
  24. * Connection #0 to host [url]www.google.com[/url] left intact
  25. * Closing connection #0
__________________
dominioslibres.info