Solved

Webservice call through socks proxy

Posted on 2004-08-08
3
272 Views
Last Modified: 2008-01-16
Hi guys,

We are using the following code to call webservice through proxy.

proXy = New WebProxy(drSchedule("server"), CType(drSchedule("port"), Integer))
proXy.Credentials = New System.Net.NetworkCredential("username","password")
proXy.BypassProxyOnLocal = True
GlobalProxySelection.Select = proXy

url = "http://www.google.com"
webReq = WebRequest.Create(strurl)
webReq.Proxy = proXy
webResp = webReq.GetResponse

This works perfectly with httpproxy having basic authentication. But not working through socks. Can anybody give any idea how to get it working through socks. Also if somebody can explain how these different type authentication works on proxies. We have to distribute this software and each client is using different proxies with different settings. how can we make our software compatible with all types of proxies.


Thanks
Anish
0
Comment
Question by:inetworks
3 Comments
 
LVL 5

Accepted Solution

by:
thenrich earned 500 total points
Comment Utility
what settings are you looking to make differant? If it's user name and password you'll have to pop-up an input box to collect that information. Else try this links

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceinet/html/wceinetProxyAuthentication.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceinternet5/html/wce50conhttpauthentication.asp
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now