|
-
Feb 27th, 2008, 03:57 PM
#1
Thread Starter
Addicted Member
Proxy server
I have a windows app that can access a web site using System.Net.WebClient
This works fine but I have have a user that has a proxy server. My networking knowledge is poor and I don't understand what I have to do to get thought the proxy server to the web.
Is there anyone that can explain it or point me to some documentation.
regards
Barry
-
Feb 28th, 2008, 09:14 AM
#2
Re: Proxy server
I believe your user would have to allow you through his proxy so I'm thinking this is something that would need to be done on his end.
Have you talked to his networking people?
-
Feb 28th, 2008, 11:25 AM
#3
Thread Starter
Addicted Member
Re: Proxy server
Hack
Thanks for the reply.
The User is telling me that his Uni blocks direct http: requests and that he has to go through a proxy server. He has set Firefox - tools - options -advanced - settings and checked Manual Proxy Configuration, then entered the proxy server and port. Then he can access the web.
Best regards
barry
-
Feb 28th, 2008, 12:44 PM
#4
Re: Proxy server
Try setting the Proxy property.
vb Code:
Using wClient As New Net.WebClient
wClient.Proxy = New Net.WebProxy("addressToProxy")
'rest of the code here.
End Using
-
Feb 29th, 2008, 12:05 PM
#5
Thread Starter
Addicted Member
Re: Proxy server
OK - Thanks for that. Do I have to specify a port setting as well?
-
Feb 29th, 2008, 12:30 PM
#6
Re: Proxy server
The WebProxy constructor has an overload that lets you specify the portnumber:
vb Code:
wClient.Proxy = New Net.WebProxy("address", PortNumber)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|