Solved

Webservice call through socks proxy

Posted on 2004-08-08
3
283 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
ID: 11915126
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

813 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

12 Experts available now in Live!

Get 1:1 Help Now