Solved

Webservice call through socks proxy

Posted on 2004-08-08
3
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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