Click here to Skip to main content
15,887,683 members
Everything / Proxy

Proxy

proxy

Great Reads

by Mark Pelf
In this article, we build a practical reusable Logging Proxy in C#
by Ev Uklad
Add ability to track changes in a model class; use a proxy interceptor to execute a rule attached to a model property
by Ev Uklad
Another way of using proxies and interceptors from Castle Dynamic Proxy framework
by n.podbielski
Reflection.Emit is very powerful tool. It creates IL code and since C# is converted into IL too, we have the same functionality as in C# and even more. It is very powerful and at the same time very complicated. Because of that, it is worth discussing how and for what it should be used.

Latest Articles

by Ev Uklad
Add ability to track changes in a model class; use a proxy interceptor to execute a rule attached to a model property
by Mark Pelf
In this article, we build a practical reusable Logging Proxy in C#
by Michael Haephrati
Possible ways to use a Proxy Server within a Windows C++ application
by Ev Uklad
Another way of using proxies and interceptors from Castle Dynamic Proxy framework

All Articles

Sort by Score

Proxy 

9 May 2022 by Mark Pelf
In this article, we build a practical reusable Logging Proxy in C#
27 Jun 2023 by Ev Uklad
Add ability to track changes in a model class; use a proxy interceptor to execute a rule attached to a model property
3 Nov 2020 by Ev Uklad
Another way of using proxies and interceptors from Castle Dynamic Proxy framework
8 Dec 2016 by n.podbielski
Reflection.Emit is very powerful tool. It creates IL code and since C# is converted into IL too, we have the same functionality as in C# and even more. It is very powerful and at the same time very complicated. Because of that, it is worth discussing how and for what it should be used.
10 Oct 2017 by Sabarinathan A
Run .NET Core 2.0 SDK from Corporate Proxy
29 Jan 2014 by Pete O'Hanlon
Unfortunately, there isn't a straightforward solution. I've seen samples that rely on the overriding the Navigate method which works when you directly load the page, but fails when the user clicks a hyperlink in the returned document. Fortunately, there's a thorough working solution here[^].
5 Feb 2014 by Sergey Alexandrovich Kryukov
The discussion in comments looks going well beyond the format of Quick Questions & Answers. You really need to design the server and client parts thoughtfully from the very beginning; so focusing on just your questions may not be so helpful. For some very relevant ideas, please see my past...
21 Nov 2015 by Martin Jarvis
Cleaner WCF Proxy usage with DynamicTidyProxy
17 May 2013 by GAJERA
Hi AllI have to trace the HTTP traffic .It work without Https. I try for the https, it successfully get the response via Sslstream through the certificate. When i forward ssl response for the relay but it doesn’t getting the response.Please let me how to relay SSL response?Please check...
24 Sep 2014 by adityaswami89
Proxy design pattern
18 Apr 2015 by Kornfeld Eliyahu Peter
Obviously default credentials can't go through the proxy...You have two options:1. Add a DLL that does the authentication via module element: https://msdn.microsoft.com/en-us/library/6w93fssz(v=vs.110).aspx[^]...The DLL must contain a class implementing IWebProxy[^]2. Do all the proxy...
29 Sep 2015 by CPallini
It looks you are out of luck[^].
29 Sep 2015 by Leo Chapiro
First of all see the short answer (nope) of CPallini above ;)The long answer comes here.A proxy is a design pattern that allows you to provide an interface to other objects by creating a wrapper class as the proxy. The wrapper class, which is the proxy, can add additional functionality to...
27 Feb 2017 by Jochen Arndt
There may be two reasons for such behaviour.The first is that the page is not requested again but got from the cache. This can be only avoided by clearing the cache (see How to clear the cache when your application hosts a WebBrowser control in Visual C# .NET[^]).The second reason might...
30 Jul 2017 by GPrasad2050
Hi , If you are using IIS 8 you can try below setting IIS 8.0 The enableProxyMode attribute was added to enable you to block requests from a client that connects through a proxy. The denyAction attribute was added to specify the default deny mode response that IIS sends back to clients. ...
31 Jan 2012 by Sašo Mađarić
Hi :)I have one question about lxml and proxy... Now i'm using LXML for parsing HTML... it's work perfectly, but i would like to use proxy server. Is possible to do this with LXML library?I'm using next lxml functionsparse(url).getroot()I found only this solution for...
16 Feb 2012 by lucius234
HelloI'm trying to build an application that checks the availiability of some internet addresses. Therefor, i'm doing a webrequest. I need to use a proxy server on which the user, under which the application is running, isnt allowed. Thus i'm setting the proxy credentials. Unfortunately I...
9 Mar 2012 by Member 8714829
Hi,I am new in C# (VS2010, 4.0 .net framework), want to be able to have a class within my project that have the ability to choose between a QA versus a PROD web service HTTP/ASMX, I already created two web service references within my solution (one per env.), now I am doing the following in...
9 Mar 2012 by PopeDarren
I've seen it done this way. It's not a bad way to solve it. It's easy to change, but it means doubling the coding in places, which can get hairy.I've also seen it done using compiler directives.#IF DEBUG//use the QA service#ELSE //use the PROD service#ENDIFYou could also...
5 Apr 2012 by Kapil Waghe
Hello All,I want to use my private proxy in C# desktop application to get the data from some website. I am using the below code : WebProxy myProxy = new WebProxy(); myProxy.Address = new Uri("MY_PRIVATE_PROXY:PORT"); myProxy.Credentials = new...
4 Jun 2012 by thuanleminh
hi all,i am a linux newbie , i have a question :i have two server A and B , on server B i store any my websites (a.com, b.com, ....)i want to install Nginx and node.js on server A to do bellow task : create a proxy server(nginx) and web-server(node.js) in server A all...
11 Jun 2012 by Stephen Hewison
Hi,I've got a tough question here. Let me explain first explain the infrastructure in which it occurs.Some of our clients operate with environments which utilise proxy servers, so access to our sites is done so via the proxy. They come through our DMZ and firewall to a NLB cluster...
4 Jul 2012 by shamypnr
This is the c# code which i use to bypass proxy to access the webservice since my system is using proxy. iam using VS 2010 and using the webservice in my windows application.WebRequest.DefaultWebProxy = new WebProxy("http://IN02S10004:80/", true); But still i get the error as...
4 Jul 2012 by barneyman
Perhaps you need to login to the proxy?WebProxy provides a constructor that takes credentials for Proxies[^]Best bet is have a look at the HTML you're getting back instead of XML - it probably has some info in it
4 Jul 2012 by Sebastian T Xavier
Hello,I strongly suspect there is an issue with web service. The issue may not be with consuming web service. Try to access web service from outside your application.please refer the following...
25 Sep 2012 by DEB4u
Hi Everyone,My PC connects to internet via LAN(Ethernet based), it has a proxy authentication. I want to share internet from my PC through my wireless adapter. How can I do it?Thanks for help :)
25 Sep 2012 by Kuthuparakkal
Use Virtual Router:http://virtualrouter.codeplex.com/[^]
7 Nov 2012 by kubi081
Hi I want to send mail with ASP.NET, but I want to send email through proxy server,So how should I edit the code below to send it through a proxy server?Thanks MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new...
27 Nov 2012 by 10110010
Hello,i have a WebService that use WSE 3.0.In an Consumerproject added the Webservis as WebReference.Now i have an generated Proxy Class.This Class inherits System.Web.Services.Protocols.SoapHttpClientProtocol.But i need that the Class inherits...
14 Mar 2013 by waypoint7
Everywhere I look for hints to connect to a (web)service, I am advised to choose "add service reference" but that wont'work in my current situation. The implementation in my case is a third party service, and the template is not able to continue and cannot create a proxy for me. So I am...
23 Mar 2013 by OriginalGriff
The first thing you need to learn is that MD5 is not an encryption algorithm.It is a Hashing algorithm. The difference is that encryption can be reversed - Hashing cannot.Hashing is destructive - it throws away information to generate a small, fast code which can be used to verify data,...
1 Apr 2013 by Dave Kreskowiak
You really cant' do this as you'd have to code seperate modules to support hundreds, if not thousands, of different browsers and applications.You can handle the browser part very easily without writing a single line of code. It's called a Proxy AutoConfiguration script[^]. Just about all...
30 Apr 2013 by Vygandas Pliasas
Hello,I have configured my dedicated server to link domains with default port (80) to my nodejs ports accordingly to domain name. E.g. site1.com to port 2222 and site2.com to port 3333.My question is how to pass a subdomain name as a parameter, e.g.:param1.site1.com:80 should go to...
21 May 2013 by Mohammed Hameed
I am facing an issue with the Service Agent namespace after I have get latest version of my project today morning. Previously it was working fine and also nobody has changed the service agent name.IDE: Visual Studio 2010.Issue: The type or namespace name MyServiceAgent does not exist...
20 May 2013 by Usman Khan Mohammad
Expert Suggestions:Try to remove the Dependency reference Dll's. Update the Service again and restore removed dll's.Good question Hameed.....! keep log questions.
23 May 2013 by GAJERA
Hi AllI have to major the HTTP traffic via proxy, When I try to upload any image or any files it goes to hang or block. As my observation the StreamReader make it block and it is bind with NetworkStream. while (totalBytesRead
23 May 2013 by Sergey Alexandrovich Kryukov
This is a blocking code indeed, and this blocking is efficient in terms of performance; the thread is put to wait state and will be waken up when data arrives. This is a good thing, not bad. That's why all the communications should be done in a separate thread.—SA
25 Jun 2013 by GAJERA
Hi All ,I have to make tunnel throug the proxy server.I have try on link https://login.yahoo.com/config/login_verify2?.intl=in&.src=ym.I have succusfully authentic with certificate and get the response from it with underline.Now ,Make this response as request and write it again to...
9 Jul 2013 by Aaron @ Think Software
If haproxy redirects the site to the specific server and port, the host name should still stay the same in the users browser so you should be able to extract the subdomain from the hostname and then redirect on the site to the specific folder relating to the subdomain such as Apache's...
9 Jul 2013 by GAJERA
Finally get the soluction ,Have to implement Remote Tunnel.
31 Jul 2013 by GauravThorat
Hi All,Proxy Server Enable - is disabling my ASP.NET web application button clicks(IE-Tools-Internet Options - Connections - LAN Settings - in Proxy Server Group box - User Proxy)After selecting above check box, my asp.net sites button clicks of saving data to server and updating data...
24 Aug 2013 by Sicppy
I am trying to make a custom proxy application in c# and i need to know how to do the following. - Intercept all outgoing data - Send data to proxy server - Complete connections to intended destination - Return data to clientI am completely lost and would not begin to...
12 Oct 2013 by ASP.NET Community
Proxy Design PatternThe Gang Of Four definition of this design pattern is "Provides a surrogate or placeholder for another object to control access
14 Oct 2013 by sailoosha
I want to access the State of the Channel. I'm receiving the __TransparentProxy which contains a RealProxy(rp). I'm able to access it using this function GetRealProxy()But, I am still not able to get the Status from the Real proxy. I'll need to get the ServiceChannel form the realproxy and...
28 Nov 2013 by Member 10433765
Hi,My wcf service needs to send some files to another wcf service which present over the internet. My WCF service is hosted in a windows service on a computer in my organization's domain. All the communications to the outside world happen through a Proxy Server. I tried turning on the...
28 Nov 2013 by bluesathish
For Bypassing proxy servers you need to add the following property bypassProxyOnLocal="true" in BasicHttpBinding tag from web.config file of your wcf application.Sample code,
22 Dec 2013 by pulkitluthra
Hello folks!We are trying to access a WCF Service hosted on SSL from behind a proxy(Squid) via a Silverlight Out of Browser application.When I paste the https URL in the browser, it works fine. However, we were not able to access the service from our application. It works fine even when...
26 Jan 2014 by Zak Chapman
I'm new in programming and i wanted to make my app using C++ download data behind proxy,i just detect if the user is behind proxy by request like this code:int CWeatherInfoDlg::FindWebAddress(char *szAuthLine){ DWORD dwRet = 0; BOOL bResult; char szTemp[256]; struct in_addr...
29 Jan 2014 by BenJBaker╣
I've been trying to make a proxy web browser in a c# application so far I have only managed to do this by changing the system registry to use a proxy, this is not the way I want to do it as that effects all browsers on the PC i want it to be within the application. I have tried this but it is...
4 Feb 2014 by User 10534400
Hi, all!I am writing proxy server on asynchronous sockets for educational purposes and stuck at the point, that my browser treat some web-sites' response different way if i don't use the proxy, for some of them i don't see response at all, though i see in console, that request was sent and...
23 Feb 2014 by tieugiang94
I'm building an Portable Class Library project. I seem not support WebProxy ( I'm preferenced the System.Net, i added Using System.Net ) cookieContainer = new CookieContainer();handler = new HttpClientHandler{CookieContainer = cookieContainer,UseCookies = true,UseDefaultCredentials...
6 Mar 2014 by Harikrk
I have a WCF WorkflowService hosted in IIS. I have another WCF service hosted in seperate service in IIS. from WCF service I am invoking the workflow using proxy. Is there anyway to use workflowcontrolendpoint to terminate the workflow using url. I want this way because i want to control the...
20 Mar 2014 by ham3d
I have created SOCKS proxy server using delphi that connecting through an HTTP proxy. It's work except when using SSL from client.The project was embed on my project at http://www.davicode.com/2014/02/new-release-2014-tun2socks-gui-v220-new.html[^].I need solution how to capture SSL...
25 Mar 2014 by VanTheamoon
Dear Sir,You can see at this ref. article, maybe advantage for youhttp://www.oracle.com/technetwork/articles/soa/lik-keung-osb-edn-2104849.htmlGood Luck,
14 Aug 2014 by Christian Amado
Inside your web.config... Hope it helps.
6 Sep 2014 by OriginalGriff
The purpose of a proxy server is to restrict what you can and can't access - and what the outside world can access on your side of the proxy. They also can be used to cache frequently used pages and so forth, but mostly they are there to enforce corporate acceptable use policies.Any attempt...
29 Sep 2014 by Tim Carmichael
Setup NTP on the proxy server to sync with the wider world and tell the isolated machine to use the proxy for NTP service.
27 Oct 2014 by GAJERA
Hi All,I have been created the proxy to trace websocket traffic .It work fine when small amount data has been transferred. In other case when transfer big amount of the data I received data in difference frame (chunk) instead of one.I need the big data as single frame (chunk) Is there...
27 Oct 2014 by Suvabrata Roy
Hi,You need to check what is your max request length at web Config.Ref : http://msdn.microsoft.com/en-IN/library/e1f13641(v=vs.71).aspx[^]Second : RFC doc about web Socket Ref-> http://msdn.microsoft.com/en-IN/library/e1f13641(v=vs.71).aspx[^]Go through the answer you will find...
30 Nov 2014 by Volodymyr_
Moved this question from Stack Overflow since guys doesn't like opinion based questions. Hope I will find the answer here.Problem: I want to download music from social network server (hosted on another domain), which doesn't support CORS, JSONP and some other stuff to make my life more...
28 Dec 2014 by Member 11303078
I had make an reverse proxy using IHttpAsyncHandler class that listen on the iis request and according to the incoming url path i send a request to another site public class ReverseProxy : IHttpAsyncHandler{ public bool IsReusable { get { return...
27 Apr 2015 by pierrix
Hi,I've the following error problem when I use Meteor, on Nitrous.io, behind the proxy of my Enterprise :WebSocket connection to 'ws://myproject-201976.euw1-2.nitrousbox.com/sockjs/608/xidbbqpk/websocket' failed: Error in connection establishment: net::ERR_TUNNEL_CONNECTION_FAILEDI...
3 Apr 2015 by ‫محم د‬‎
you should disable all proxy on your pc cant use with proxy ...
18 Apr 2015 by Zon-cpp
Hi,Does anyone know how I can set up a system wide proxy in Windows 7 and XP? I have a windows form project in C# that uses web service via internet.in my system it works correctly. But in another system with proxy it doesn't connect to web service! Althogh the browsers in this system...
19 Apr 2015 by Zon-cpp
This solution is realy great :http://stackoverflow.com/questions/186800/is-it-possible-to-specify-proxy-credentials-in-your-web-config[^]
21 Apr 2015 by Zon-cpp
Hi,In my windows form project, I used IWebProxy to config proxy credential, like as this solution that helps me:http://stackoverflow.com/questions/186800/is-it-possible-to-specify-proxy-credentials-in-your-web-config[^]but in a XP system I have this error (when the Application wants to...
28 Apr 2015 by pierrix
The answer is here :https://github.com/meteor/meteor/wiki/Using-Meteor-behind-a-proxyThank you.Pierre.
8 Jul 2015 by surifoll
![enter image description here][1]i'm new to soap, i used wsdl tool to download the .cs file of the web service buh i two issues:1. i received this error most of the time i tried to make call to the service that: " Unable to automatically step into the server. Connecting to the...
28 Jul 2015 by Sergey Alexandrovich Kryukov
The question makes no sense. Limiting Internet is bad. If "protection" is good, you cannot solve the problem with technical methods, if it is bad, you could probably bypass it. The real solution is to oppose the limiting policies.—SA
26 Aug 2015 by oamirloo
hi every body.I have a problem.I need access to a web site with clicking user in my web application via Proxy without user add any setting in own browser.how can implement this with c# in my web application.any control or tools exist for doing this in transparent i use after user...
29 Sep 2015 by Member 11833796
I am confused about dynamic proxy mode,which is a kind of proxy mode.How to realize dynamic proxy mode in C++ language?Please give me an example about dynamic proxy in C++ language!
8 Oct 2015 by Sergey Alexandrovich Kryukov
The question does not seem to make any sense. There is no such thing as "addressing WSDL.exe". This is nothing but some development tool, an application use to generate code for XML Web services and clients: https://msdn.microsoft.com/en-us/library/7h3ystb6%28v=vs.100%29.aspx[^].I cannot...
21 Oct 2015 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Not a specific question. Next time please come with a specific programming issue.
12 Jan 2016 by saifmossel
Hi i am building a simple c++ program using http/https proxy. I tried it to use the MFC CInternetSession class. But it didn't work over many proxy servers. So I tried it to use the libcurl. It seems that working well. But I am tired. When i try to post the form to website. I saw the somethings...
13 Jan 2016 by Aescleal
CURLOPT_WRITEFUNCTION is your friend. The function you give libcurl when you set this option is called whenever you get a response from the server after performing the operation.
13 Jan 2016 by Jochen Arndt
"HTTP/1.1 200 Connection established" is the initial response line (status line) from the server to your request. Depending on the request it is followed by the header lines and the message body (which you are interested in). You may parse these information to know if the connection was...
21 May 2016 by BladeLogan
I tried using the debugger and it runs through just as it should I am trying to use a proxy to connect through IExplorer. and yeah well.. its not using the proxy I am providing it and its not giving me any errors aswell.. Did I miss...
22 May 2016 by BladeLogan
I am trying to connect to the internet through a proxy, more specificlly, this site to test if the proxy is working AZ Environment variables 1.04 As you can see down below.. It is NOT connecting using the proxy I set it to, and as you can see in the code below, it should be.. I used the...
22 May 2016 by an0ther1
You are not setting your Proxy server in the webBrowser1_Navigating event handler, only in your Form_Load event handlerAdd the code to the webBrowser1_Navigating event handler to make your HttpWebRequest use the ProxyWebProxy myProxy = new WebProxy(proxyBox.Text);myRequest.Proxy =...
21 Jan 2017 by Afzaal Ahmad Zeeshan
All you need is to logout of Google account. The search that you will perform will be anonymous. They will use cookies, or other stuff to record your current history, but that will not affect the account. Another way, go private (incognito), then search. Basically, any search you perform is...
27 Feb 2017 by Nika Qantaria
I'm trying to develop an application, where user can load a proxy list and software should navigate to a page with different IP's. I'm using some registry settings to do that. But the problem is that when i try to change the IP address it remains the same, in "Internet Options" the IP has...
30 Mar 2017 by sopy7
I'm trying to pass system default proxy from windows application to windows service. While passing the value I get the below error.//Type 'System.Net.WebRequest+WebProxyWrapper' cannot be serialized. Consider marking it //with the DataContractAttribute attribute, and marking all of its...
15 Apr 2017 by Chrisstone07
Im developing an Http proxy server for a UWP application(C#) but face issues with requests sent and received by a creating a socket.I first create a socket stream object and then listen for Http requests sent by send-async to socket stream listener.However i face Http exceptions and sockets...
15 Apr 2017 by RickZeeland
I am not a frequent user of WireShark, and as the user interface has changed significantly I can't tell exactly how, but in the past I defined a filter for the ip address e.g. `ip.addr eq 127.0.0.1` and then started capture. When you see a line in the log that is interesting, you can right-click...
30 Apr 2017 by GoobyGuy1
So I came up with this idea in how to check if a proxy is http / https & alive or not. It's a quick fix and not at all optimal in reality, but I couldnt for the life of me find docs about testing proxies online so im asking here. What im doing is this, im putting my code into a try catch...
1 May 2017 by GoobyGuy1
So im trying to connect to the internet using my WebBrowser control in C# and what I do is that I change the Registry Editor to change the Proxy settings in Internet Explorer but it doesnt actually apply the proxy server until I restart the application. For example.. 1. I start the application...
1 May 2017 by Dave Kreskowiak
You're hacking the setting directly into the registry, but the application doesn't know this stuff changed. The WebBrowser control only loads the proxy information once, when the control is created. You have to change the proxy information using the functions in WinInet.dll, example of which...
30 Jul 2017 by User 11061201
I want my ASP.net written WEB application to deny entrance to those clients that connect over a Proxy. I want thus to stop automated BOTS.
15 Aug 2017 by User1454
Hi all, I need to connect my application to outlook with EWS service through URL. I have set all the values properly but it throws an error "502-bad-gateway-error-happen". Please help where am I doing wrong. How can I check the connection is established or not? What I have tried: ...
3 Oct 2017 by DSomesh
My application uses some proxy which is set at global level.So,even after doing httpurlconnection.openconnection (not httpurlconnection.openconnection (proxy) which takes proxy as parameter) ,the connection is made through the proxy. I would like to know if I can not use the default proxy in...
3 Oct 2017 by Dave Kreskowiak
That is entirely up to your on-premises network people. You either have to use a proxy or you don't, or you may be able to get an exception setup in the proxy configuration for the workstations using your app.
28 Aug 2018 by Herboren
I have been given a task to create a custom search engine using gcse. I have also been given 300+ websites/domains on a white-list, but due to the sheer strength of our proxy, not all sites on the white-list appear to be accessible. I tried creating a tool to get the redirect of the URL, and...
24 Sep 2018 by Sni.DelWoods
I'm consuming a web service which is bound to a specific IP adress. e.g. https://service.ExternalCompany.com/GetInformation allows only request from (185.10.20.30) I'm creating a windows application which should be used on multiply computers and networks. So the webservice rejects the request...
30 Oct 2018 by Yount_0701
Hello everyone! I'm trying to use openssl lib to access some web and analyse the http json response.the earlier test is ok until it send http request through a http proxy. i'm not familiar with this lib, which sounds very powerful. and i'm sure that the proxy problem should be considered by the...
7 Nov 2018 by Yount_0701
HTTP has CONNECT / GET / POST ... methods. If my client program pass through a proxy and access the web. it looks like : my_client --> proxy --> web server. OPENSSL is a powerful lib to deal with HTTPS(SSL/TLS).I'm trying to use this lib to access the web server through the middle side proxy...
18 Feb 2019 by LiQuick
Dear readers, For a project I need to expose a third party API partly to the public. To do this I thought I could easily get in incoming request, reroute it to the API, get response back and deliver response to the client. Pretty simple concept in theory, but somehow problematic. Partly the...
18 Feb 2019 by Derek Viljoen
Run Postman against your service API and see what it gives you. Try to duplicate exactly what your proxy is generating (look specifically at the HTTP headers). You can verify this in Fiddler. Are you sending content-type, and if so what is it set to? Are you sending an 'accept' header in the...
4 Dec 2019 by Richard MacCutchan
You need to complain to the people who sold you those products. But this is really not the right place for your question. Google will find you better commercial products which you can evaluate for yourself.