Generate static website based on user locale
Good Morning, I am trying to generate static website based on dynamic site running on tomcat so I can take some load off my app servers. A twist here is that we are serving different pages based on user location (Application has a logic that checks user IP and display content based on user location) and wondering is there a tool like wget that also accepts any locale? Cheers -Monty
Re: Generate static website based on user locale
On Tue, Jun 10, 2014 at 7:36 AM, Monty wig monty...@gmail.com wrote: A twist here is that we are serving different pages based on user location (Application has a logic that checks user IP and display content based on user location) and wondering is there a tool like wget that also accepts any locale? like wget? wget can send arbitrary headers. -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Generate static website based on user locale
On Tue, Jun 10, 2014 at 10:36 AM, Monty wig monty...@gmail.com wrote: Good Morning, I am trying to generate static website based on dynamic site running on tomcat so I can take some load off my app servers. A twist here is that we are serving different pages based on user location (Application has a logic that checks user IP and display content based on user location) and wondering is there a tool like wget that also accepts any locale? Cheers -Monty If the application is looking at the user's IP and doing a geo lookup or something like that, I don't think there's much you can do short of somehow spoofing the IP of the request. If the application looks at the headers, like the Accept-Language header, you could try setting that header with wget or curl. Dan
Re: Generate static website based on user locale
Dan, Actually Load Balancer looks for the IP address and converts it into a header which is read by application to determine user location. Is there a way to spoof IP that we sends to Load Balancer? On Tue, Jun 10, 2014 at 10:53 AM, Daniel Mikusa dmik...@gopivotal.com wrote: On Tue, Jun 10, 2014 at 10:36 AM, Monty wig monty...@gmail.com wrote: Good Morning, I am trying to generate static website based on dynamic site running on tomcat so I can take some load off my app servers. A twist here is that we are serving different pages based on user location (Application has a logic that checks user IP and display content based on user location) and wondering is there a tool like wget that also accepts any locale? Cheers -Monty If the application is looking at the user's IP and doing a geo lookup or something like that, I don't think there's much you can do short of somehow spoofing the IP of the request. If the application looks at the headers, like the Accept-Language header, you could try setting that header with wget or curl. Dan
Re: Generate static website based on user locale
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/10/2014 9:09 AM, Monty wig wrote: Dan, Actually Load Balancer looks for the IP address and converts it into a header which is read by application to determine user location. Is there a way to spoof IP that we sends to Load Balancer? If you know what header the load balancer sets for different IP addresses, could you set that in wget and go against the application directly? . . . just my (uncaffeinated) two cents /mde/ On Tue, Jun 10, 2014 at 10:53 AM, Daniel Mikusa dmik...@gopivotal.com wrote: On Tue, Jun 10, 2014 at 10:36 AM, Monty wig monty...@gmail.com wrote: Good Morning, I am trying to generate static website based on dynamic site running on tomcat so I can take some load off my app servers. A twist here is that we are serving different pages based on user location (Application has a logic that checks user IP and display content based on user location) and wondering is there a tool like wget that also accepts any locale? Cheers -Monty If the application is looking at the user's IP and doing a geo lookup or something like that, I don't think there's much you can do short of somehow spoofing the IP of the request. If the application looks at the headers, like the Accept-Language header, you could try setting that header with wget or curl. Dan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTlzAmAAoJEEFGbsYNeTwt2jkH/2MnZ45VYfTRmI6xSRnsZXP7 0aWJpeMLkKI6F9+kdFnkunLDz9tVa/aIhvrvjzEO/YSq+53YmWv7RuA4ixWt1jqo 4mVbL6jsZm9QcwrlJOpuOZkKcL6kb4GwtboJ+aCcRJUft7nR6RTuPnhuVjY+TEel TYUXpRPQ9PVZBEh6rR/nQ4RQkFsdIpI88Kx0Ur+jpxpRovjRl2gx3Vo7hJBkPYxQ iKi9XlC5wyFGFRPEFPsDYZBYTjVOtC5FgRmXF0tLRzUEaDoNjPmO/pxwCQJC83Kb R6axhTv1VkEzX7g5DMuC1V4Co0X1JotKpOmim7z0t8Lo5kNvSkBAfE9ezbuUHzM= =bbi5 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org