473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Geolocation Testing

Hi guys,

I'm currently working on a project that determines the geographical
location of a request to our servers. I'm not sure exactly how it
works as the geolocation functionality is coming from a package that
we're integrating with our website. (The package actually does much
more than just give back geographical locations, but that's irrelevant)

Because of the nature of this project (this is for a financial
institution), we need to test out the package before we begin
integrating it to ensure that it's giving us the right data.

Now, it seems that the obvious course of action would be to find
willing employees who could "hit" the servers and then ensure that the
data is coming back correctly, but this presents a few problems:
- The sample size of the test will be limited to however many
participants we have.
- The majority of the participants reside in the same geographic area.
- The testing servers that this code would be sitting on are behind a
corporate intranet, and so IT would have to get involved to do some
routing magic.

So now the question: Do any of you know of any good software packages
or methods to spoof the location of an incoming request or have any of
you had to test something like this? Any hints on a workable approach?

Thanks and regards.
Andy

Jul 13 '06 #1
6 1622
Andy,
You might want to look into the Virtual Earth "location.ashx" handler that
returns the coordinates of the browser making the request. You may have to
search around a bit to find this. I've got some info on this in an article I
wrote some time ago, here:

http://www.eggheadcafe.com/articles/20051109.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andy" wrote:
Hi guys,

I'm currently working on a project that determines the geographical
location of a request to our servers. I'm not sure exactly how it
works as the geolocation functionality is coming from a package that
we're integrating with our website. (The package actually does much
more than just give back geographical locations, but that's irrelevant)

Because of the nature of this project (this is for a financial
institution), we need to test out the package before we begin
integrating it to ensure that it's giving us the right data.

Now, it seems that the obvious course of action would be to find
willing employees who could "hit" the servers and then ensure that the
data is coming back correctly, but this presents a few problems:
- The sample size of the test will be limited to however many
participants we have.
- The majority of the participants reside in the same geographic area.
- The testing servers that this code would be sitting on are behind a
corporate intranet, and so IT would have to get involved to do some
routing magic.

So now the question: Do any of you know of any good software packages
or methods to spoof the location of an incoming request or have any of
you had to test something like this? Any hints on a workable approach?

Thanks and regards.
Andy

Jul 13 '06 #2
Hi Peter,

Thanks for your response!
I don't know if we're on the same page though; basically getting
coordinates / locations isn't my issue, my issue is figuring out how to
spoof http requests to the current geolocation package that we have to
ensure that it's working correctly.

Ideally, this would be some sort of tool that allows me to say "OK, I
want you to access this server and request this page, and tell it
you're from Las Vegas, Nevada" or something to that effect. I would
then want to make sure that the geolocation package that we have says
"Hey, I just got a request from someone in Vegas", and then continue on
giving it different countries and whatnot.
Peter wrote:
Andy,
You might want to look into the Virtual Earth "location.ashx" handler that
returns the coordinates of the browser making the request. You may have to
search around a bit to find this. I've got some info on this in an article I
wrote some time ago, here:

http://www.eggheadcafe.com/articles/20051109.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andy" wrote:
Hi guys,

I'm currently working on a project that determines the geographical
location of a request to our servers. I'm not sure exactly how it
works as the geolocation functionality is coming from a package that
we're integrating with our website. (The package actually does much
more than just give back geographical locations, but that's irrelevant)

Because of the nature of this project (this is for a financial
institution), we need to test out the package before we begin
integrating it to ensure that it's giving us the right data.

Now, it seems that the obvious course of action would be to find
willing employees who could "hit" the servers and then ensure that the
data is coming back correctly, but this presents a few problems:
- The sample size of the test will be limited to however many
participants we have.
- The majority of the participants reside in the same geographic area.
- The testing servers that this code would be sitting on are behind a
corporate intranet, and so IT would have to get involved to do some
routing magic.

So now the question: Do any of you know of any good software packages
or methods to spoof the location of an incoming request or have any of
you had to test something like this? Any hints on a workable approach?

Thanks and regards.
Andy
Jul 13 '06 #3
Andy,
I understand exactly what you want / need to do. What you must understand is
that when your request comes in, the only piece of information available to
the server that could be used for geolocation is the originating IP address.
You can do a lookup against this in DNS and find out approximately where it
came from.

So how are you going to "spoof" your originating IP address?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andy" wrote:
Hi Peter,

Thanks for your response!
I don't know if we're on the same page though; basically getting
coordinates / locations isn't my issue, my issue is figuring out how to
spoof http requests to the current geolocation package that we have to
ensure that it's working correctly.

Ideally, this would be some sort of tool that allows me to say "OK, I
want you to access this server and request this page, and tell it
you're from Las Vegas, Nevada" or something to that effect. I would
then want to make sure that the geolocation package that we have says
"Hey, I just got a request from someone in Vegas", and then continue on
giving it different countries and whatnot.
Peter wrote:
Andy,
You might want to look into the Virtual Earth "location.ashx" handler that
returns the coordinates of the browser making the request. You may have to
search around a bit to find this. I've got some info on this in an article I
wrote some time ago, here:

http://www.eggheadcafe.com/articles/20051109.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andy" wrote:
Hi guys,
>
I'm currently working on a project that determines the geographical
location of a request to our servers. I'm not sure exactly how it
works as the geolocation functionality is coming from a package that
we're integrating with our website. (The package actually does much
more than just give back geographical locations, but that's irrelevant)
>
Because of the nature of this project (this is for a financial
institution), we need to test out the package before we begin
integrating it to ensure that it's giving us the right data.
>
Now, it seems that the obvious course of action would be to find
willing employees who could "hit" the servers and then ensure that the
data is coming back correctly, but this presents a few problems:
- The sample size of the test will be limited to however many
participants we have.
- The majority of the participants reside in the same geographic area.
- The testing servers that this code would be sitting on are behind a
corporate intranet, and so IT would have to get involved to do some
routing magic.
>
So now the question: Do any of you know of any good software packages
or methods to spoof the location of an incoming request or have any of
you had to test something like this? Any hints on a workable approach?
>
Thanks and regards.
Andy
>
>

Jul 13 '06 #4
Exactly, that's the question.

Well, let me ask you this, Peter: If I was to go out to some random
website, DNS it and get it's IP address, if I were to just send that
into this geolocation package sitting on a local machine, would it be
able to tell where it is originating from geographically? That is, are
IP addresses, though dynamically allocated, geographically fixed to
some extent?

Thanks again!
Andy

Peter wrote:
Andy,
I understand exactly what you want / need to do. What you must understand is
that when your request comes in, the only piece of information available to
the server that could be used for geolocation is the originating IP address.
You can do a lookup against this in DNS and find out approximately where it
came from.

So how are you going to "spoof" your originating IP address?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andy" wrote:
Hi Peter,

Thanks for your response!
I don't know if we're on the same page though; basically getting
coordinates / locations isn't my issue, my issue is figuring out how to
spoof http requests to the current geolocation package that we have to
ensure that it's working correctly.

Ideally, this would be some sort of tool that allows me to say "OK, I
want you to access this server and request this page, and tell it
you're from Las Vegas, Nevada" or something to that effect. I would
then want to make sure that the geolocation package that we have says
"Hey, I just got a request from someone in Vegas", and then continue on
giving it different countries and whatnot.
Peter wrote:
Andy,
You might want to look into the Virtual Earth "location.ashx" handler that
returns the coordinates of the browser making the request. You may have to
search around a bit to find this. I've got some info on this in an article I
wrote some time ago, here:
>
http://www.eggheadcafe.com/articles/20051109.asp
>
Peter
>
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Andy" wrote:
>
Hi guys,

I'm currently working on a project that determines the geographical
location of a request to our servers. I'm not sure exactly how it
works as the geolocation functionality is coming from a package that
we're integrating with our website. (The package actually does much
more than just give back geographical locations, but that's irrelevant)

Because of the nature of this project (this is for a financial
institution), we need to test out the package before we begin
integrating it to ensure that it's giving us the right data.

Now, it seems that the obvious course of action would be to find
willing employees who could "hit" the servers and then ensure that the
data is coming back correctly, but this presents a few problems:
- The sample size of the test will be limited to however many
participants we have.
- The majority of the participants reside in the same geographic area.
- The testing servers that this code would be sitting on are behind a
corporate intranet, and so IT would have to get involved to do some
routing magic.

So now the question: Do any of you know of any good software packages
or methods to spoof the location of an incoming request or have any of
you had to test something like this? Any hints on a workable approach?

Thanks and regards.
Andy
Jul 13 '06 #5
Nevermind Peter, that question was a result of too much coffee.

So you can't really spoof an IP address, but that is exactly what I
would need to do in order to be able to test this out as I wanted. So
I guess it'll just be a matter of sucking it up and trying to get some
geographically diverse employees to test this guy out.

Thanks again!
Andy

Andy wrote:
Exactly, that's the question.

Well, let me ask you this, Peter: If I was to go out to some random
website, DNS it and get it's IP address, if I were to just send that
into this geolocation package sitting on a local machine, would it be
able to tell where it is originating from geographically? That is, are
IP addresses, though dynamically allocated, geographically fixed to
some extent?

Thanks again!
Andy

Peter wrote:
Andy,
I understand exactly what you want / need to do. What you must understand is
that when your request comes in, the only piece of information available to
the server that could be used for geolocation is the originating IP address.
You can do a lookup against this in DNS and find out approximately where it
came from.

So how are you going to "spoof" your originating IP address?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andy" wrote:
Hi Peter,
>
Thanks for your response!
I don't know if we're on the same page though; basically getting
coordinates / locations isn't my issue, my issue is figuring out how to
spoof http requests to the current geolocation package that we have to
ensure that it's working correctly.
>
Ideally, this would be some sort of tool that allows me to say "OK, I
want you to access this server and request this page, and tell it
you're from Las Vegas, Nevada" or something to that effect. I would
then want to make sure that the geolocation package that we have says
"Hey, I just got a request from someone in Vegas", and then continue on
giving it different countries and whatnot.
>
>
Peter wrote:
Andy,
You might want to look into the Virtual Earth "location.ashx" handler that
returns the coordinates of the browser making the request. You may have to
search around a bit to find this. I've got some info on this in an article I
wrote some time ago, here:

http://www.eggheadcafe.com/articles/20051109.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Andy" wrote:

Hi guys,
>
I'm currently working on a project that determines the geographical
location of a request to our servers. I'm not sure exactly how it
works as the geolocation functionality is coming from a package that
we're integrating with our website. (The package actually does much
more than just give back geographical locations, but that's irrelevant)
>
Because of the nature of this project (this is for a financial
institution), we need to test out the package before we begin
integrating it to ensure that it's giving us the right data.
>
Now, it seems that the obvious course of action would be to find
willing employees who could "hit" the servers and then ensure that the
data is coming back correctly, but this presents a few problems:
- The sample size of the test will be limited to however many
participants we have.
- The majority of the participants reside in the same geographic area.
- The testing servers that this code would be sitting on are behind a
corporate intranet, and so IT would have to get involved to do some
routing magic.
>
So now the question: Do any of you know of any good software packages
or methods to spoof the location of an incoming request or have any of
you had to test something like this? Any hints on a workable approach?
>
Thanks and regards.
Andy
>
>
>
>
Jul 13 '06 #6
Yes, sir. That's it.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andy" wrote:
Nevermind Peter, that question was a result of too much coffee.

So you can't really spoof an IP address, but that is exactly what I
would need to do in order to be able to test this out as I wanted. So
I guess it'll just be a matter of sucking it up and trying to get some
geographically diverse employees to test this guy out.

Thanks again!
Andy

Andy wrote:
Exactly, that's the question.

Well, let me ask you this, Peter: If I was to go out to some random
website, DNS it and get it's IP address, if I were to just send that
into this geolocation package sitting on a local machine, would it be
able to tell where it is originating from geographically? That is, are
IP addresses, though dynamically allocated, geographically fixed to
some extent?

Thanks again!
Andy

Peter wrote:
Andy,
I understand exactly what you want / need to do. What you must understand is
that when your request comes in, the only piece of information available to
the server that could be used for geolocation is the originating IP address.
You can do a lookup against this in DNS and find out approximately where it
came from.
>
So how are you going to "spoof" your originating IP address?
Peter
>
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Andy" wrote:
>
Hi Peter,

Thanks for your response!
I don't know if we're on the same page though; basically getting
coordinates / locations isn't my issue, my issue is figuring out how to
spoof http requests to the current geolocation package that we have to
ensure that it's working correctly.

Ideally, this would be some sort of tool that allows me to say "OK, I
want you to access this server and request this page, and tell it
you're from Las Vegas, Nevada" or something to that effect. I would
then want to make sure that the geolocation package that we have says
"Hey, I just got a request from someone in Vegas", and then continue on
giving it different countries and whatnot.


Peter wrote:
Andy,
You might want to look into the Virtual Earth "location.ashx" handler that
returns the coordinates of the browser making the request. You may have to
search around a bit to find this. I've got some info on this in an article I
wrote some time ago, here:
>
http://www.eggheadcafe.com/articles/20051109.asp
>
Peter
>
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Andy" wrote:
>
Hi guys,

I'm currently working on a project that determines the geographical
location of a request to our servers. I'm not sure exactly how it
works as the geolocation functionality is coming from a package that
we're integrating with our website. (The package actually does much
more than just give back geographical locations, but that's irrelevant)

Because of the nature of this project (this is for a financial
institution), we need to test out the package before we begin
integrating it to ensure that it's giving us the right data.

Now, it seems that the obvious course of action would be to find
willing employees who could "hit" the servers and then ensure that the
data is coming back correctly, but this presents a few problems:
- The sample size of the test will be limited to however many
participants we have.
- The majority of the participants reside in the same geographic area.
- The testing servers that this code would be sitting on are behind a
corporate intranet, and so IT would have to get involved to do some
routing magic.

So now the question: Do any of you know of any good software packages
or methods to spoof the location of an incoming request or have any of
you had to test something like this? Any hints on a workable approach?

Thanks and regards.
Andy



Jul 14 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Hugh Cowan | last post by:
Hello, I don't program full-time (anymore), but I do try and stay on-top of the latest technologies and like most are always trying to upgrade my skills and remain current (as much as is...
0
by: Jonathan Allen | last post by:
We have found that our method of testing does not match traditional text-book methodologies. I decided to write a short white paper on it so that I could get your opinions. Does anyone else use...
72
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: ...
0
by: rew190 | last post by:
Hi guys, I'm currently working on a project that determines the geographical location of a request to our servers. I'm not sure exactly how it works as the geolocation functionality is coming...
58
by: nw | last post by:
Hi, I have been asked to teach a short course on testing in C++. Until now I have used my own testing classes (which from what I've seen seem similar to the boost unit testing classes)....
18
by: Andrew Wan | last post by:
I have been developing web applications with ASP & Javascript for a long time. I have been using Visual Studio 2003.NET. While VS2003 is okay for intellisense of ASP & Javascript, it's still not...
0
by: Matthew Fitzgibbons | last post by:
I'm by no means a testing expert, but I'll take a crack at it. Casey McGinty wrote: I've never run into this. Rule of thumb: always separate software from hardware. Write mock classes or...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.