Knowing which browser is accessing

I

Irepan

I'm building a windows service to use with my installation project, this
installation will get some values from the webservice, is there a way in the
webservice to only let my program to use this webservice, i mean i don't want
IE or some other program to access this webservice but this program.
 
B

Brock Allen

You'll never know with 100% certainity because it's up to the client to send
a header identifying itself. Opera allows the user to change this to send
anything you want. It's typically done to fool the webserver into thinking
it's an IE client.

In any event, you can access this info via Request.Browser.
 
J

jberg

If you are using .Net 1.1 and you do NOT have the following in the
web.config for the web service, then you will only be able to get data
from it using Soap, not a browser Post or Get:

<protocols>
<add name="HttpPost"></add>
<add name="HttpGet"></add>
</protocols>

In 1.1 only "HTTPSoap" is turned on by default, not "HTTPPost" and
"HTTPGet". I am not sure, but 1.0 may turn these on by default.

John
 
W

William LaMartin

Have the webservice require a password and have the installation project
send this password with its request.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top