Calling URL without opening a browser window.

Lloyd

New member
Joined
Mar 31, 2010
Messages
3
Programming Experience
Beginner
Hello all

Another Noob question for you.

I am writing a CRM application. My office uses SNOM IP telephones. These phones allow you to send a "http://...." url to the ip address of the phone and it will then run a command. (in my case it activates speaker phone and dials the number).

This works with the following code:

VB.NET:
Private Sub txtTel_H_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtTel_H.DoubleClick
        Dim URL As String
        URL = "http://192.168.0.108/command.htm?key=speaker&number=" & txtTel_C.Text & "&outgoing_uri=URI"
        System.Diagnostics.Process.Start(URL)
    End Sub
'txtTel_C.text is the telephone number to be dialed.

The problem I have is that this opens up the phone's web interface in the browser. I don't want the user to be able to fiddle with this.

Can anyone tell me how I can pass a URL to an ip address without opening the browser window? (I have looked all over the web and I can't find this anywhere.

Your help will be greatly appreciated.

Thanks

Lloyd
 
VB.NET:
Dim client As New Net.WebClient
client.DownloadString(url)
 
I don't mean to press my luck John, but have you any idea how I can use the browser's proxy settings with this? I would prefer not to have to pass usernames and passwords (ie rather use the browser's setting) but still not show the browser.
 
I don't think this has anything to do with proxies, but if it does check out the Proxy property. Otherwise, for transport level authentication you can use the Credentials property or UseDefaultCredentials property (these can also be set for the separate proxy). Have a look in help WebClient Properties (System.Net)
 
Back
Top