Click here to Skip to main content
15,897,518 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 Updated

Proxy 

13 Aug 2014 by $ultaNn
i have a website on my server and my company user Proxy server when i try to get IP address from client machine its giving me Proxy IP address not client machine IP address i want to put Proxy server credential in my application to bypass the proxy and get the client machine IPplease...
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...
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...
20 May 2012 by abhinav_soni
This article provides alternative to Java's Proxy class with bytecode manipulation.
24 Sep 2014 by adityaswami89
Proxy design pattern
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.
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...
18 Dec 2017 by aleksvarga
So I was playing around with HttpWebRequest & HttpWebResponse trying to make a few connections with different proxies. And I stumbled on to a weird issue. I tried making a HttpWebRequest to http://cmyip.org with the Proxy "45.55.27.246:8080" and it went just fine, I looked through the...
23 Mar 2013 by alisna43
hello theremy name is ali and im living in iran, as you know our government is limiting the internet on us.we have censorship on it that we cannot go to facebook even.because of that we should use vpn or proxy or anything like that.recently the have blocked the PPTP and L2TP protocols...
28 Mar 2013 by alisna43
you even did not read the question completely.THERE IS NO PROBLEM WITH ENCRYPTION MY FRIEND. No encrypting included code is not workingFor your Information Im using TripleDES With MD5thank you anyway
5 Feb 2020 by amatecki
Service unit for auto reloading Docker containers running web apps behind nginx reverse proxy server after renewal of Let's Encrypt certificates managed by Certbot on Linux VPS
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 =...
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
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
1 Jun 2021 by Ben Zimmer
So this is the popup that I'm referencing: https://i.stack.imgur.com/w0Abz.png Everything is working completely fine except this one pop up which I can’t bypass. Here is the code I'm using to connect to the url public void...
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...
8 Mar 2021 by Bernhard Hiller
With Firefox, I use a proxy.pac file for ad-blocking. Since ad-blocking is an evil purpose, Google removed the support for proxy.pac files from Chrome. I'd like to be Bad Bernie and use my file with Chrome, too. Do you have any evil ideas how to...
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...
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,
7 Nov 2012 by CBadger
You can create a Method to send the mail through proxy...MailAddress from = new MailAddress("from@mailserver.com");MailAddress to = new MailAddress("to@mailserver.com");MailMessage mm = new MailMessage(from, to);mm.Subject = "Subject"mm.Body = "Body";SmtpClient client = new...
26 Jan 2016 by Chris Copeland
A managed library to launch and/or connect to the Tor network for SOCKS5 communications, and for middle-man proxy hosting.
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...
14 Aug 2014 by Christian Amado
Inside your web.config... Hope it helps.
5 Apr 2012 by code4Better
While specifying path it is always better to use @string
29 Sep 2015 by CPallini
It looks you are out of luck[^].
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...
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...
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.
16 Dec 2020 by Dave Kreskowiak
This isn't a "code for hire" or "do my work for me" site, no matter how much you're willing to pay. Try Freelancer.com and get out your credit card. But, be warned, you get what you pay for.
8 Oct 2015 by davidkhll
I want to generate with the VS 2015 command prompt an .asmx file based on a .wsdl and .xsd-schema file. I was trying to follow all the instructions of how to generate a .asmx for building a web service file with wsdl.exe, but unftorunately i got all the time the error message within VS 2015 C#,...
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 :)
9 Nov 2012 by DemeCarv
I strictly followed chapter 2 of "Oracle SOA Suite 11g R1Developer's Guide" from author "Antony Reynolds".Basically the chapter guided me to this steps:I created BPEL Process in JDevelop and I tested succesfully using JDevelop.I created Proxy and Business Service in OSB and I tested...
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...
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 Nov 2020 by Ev Uklad
Another way of using proxies and interceptors from Castle Dynamic Proxy framework
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
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...
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
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 GAJERA
Finally get the soluction ,Have to implement Remote Tunnel.
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...
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...
16 Dec 2020 by Gerry Schmitz
You "remote desktop" (RDP, Team Viewer) into a device / PC located in a valid area using a "roaming" device / PC. That's your "proxy".
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...
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. ...
11 Sep 2013 by Guirec
A journey into AOP land with concerns, pointcuts, joinpoints, advices, aspects, interceptors, proxies, targets, mix-ins, composites...
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...
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...
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...
29 Sep 2014 by ilostmyid2
my computer is connecting to the internet via a proxy server. i want to keep Windows 7 time accurate in such a condition. how can i?
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...
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...
29 Mar 2012 by Kapil Waghe
Hi Experts,I am new to the paid/private proxy. I am having an c# windows forms application and I want to use the paid/private proxy in my application. This application will distribute over number of users. I want them to use the paid/private proxy within the application.How can I makes...
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...
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...
15 Nov 2022 by kSalih54
Hello can't use proxy in python selenium browser browser gives this error and then closes ("ERR_TUNNEL_CONNECTION_FAILED") my code: myoptions = uc.ChromeOptions() myoptions.add_argument(f'--proxy-server=http://'+ str(proxyc)) ...
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...
25 Sep 2012 by Kuthuparakkal
Use Virtual Router:http://virtualrouter.codeplex.com/[^]
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...
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...
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 May 2022 by Mark Pelf
In this article, we build a practical reusable Logging Proxy in C#
21 Nov 2015 by Martin Jarvis
Cleaner WCF Proxy usage with DynamicTidyProxy
11 Mar 2014 by mbarbac
Implementing the Repository and Unit of Work Patterns dynamically using Kerosene ORM
15 Oct 2015 by Member 10077458
I wanted to create a proxy server just like fiddler. the main point is, this proxy will be deployed as HTTPS(SSL encripted) only.I am successfully able to create a proxy(in c#) which is intercepting all my web traffic from the browser(including https sites). But i am facing difficulty when...
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 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...
7 May 2015 by Member 11659290
i am developing a proxy programin java.It works properly for some sites.It doesnt work for some site which enforces SSL or which respond with 302 found. Tell how can i fix that/* * To change this license header, choose License Headers in Project Properties. * To change this...
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!
27 Dec 2015 by Member 12230798
Hi!I'm trying to get the html code of a website via some proxy server so that I can hide my IP address and increase response speed when doing several webrequests. However my code is not working and keeps giving errors like:"The remote server returned an error: (500) Internal Server...
21 Jan 2017 by Member 12956789
Gentle Men Programmers!If you add the following anonymous web proxy url prior to your chosenURL then you can view that URL anonymously via thehttp://anonymouse.org web proxy:
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...
31 Jan 2021 by Michael Haephrati
Possible ways to use a Proxy Server within a Windows C++ application
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...
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.
29 Jan 2018 by Nick Polyak
Roxy is a powerful new Roslyn based proxy generation packages that facilitates separation of concerns, creating adaptors and smart mixins.
16 Dec 2020 by nicolas volland
Hi, looking to pay for a solution to the following problem. I need you to develop some software for me. I would like this software to be developed for PC. I live in Dallas, TX, USA and want to play DFS ie. draftkings/FanDuel but TX is one of...
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...
27 Nov 2012 by niko_tells
Here is a very simple solution:WebProxy proxy = new WebProxy(@"http://proxyadress:proxyport");proxy.Credentials = new NetworkCredential("Username", "password");WebRequest.DefaultWebProxy = proxy;
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...
11 Dec 2015 by Oliver Bleckmann
sounds like a load blancing scenario, search google for "nginx node.js load balancing"
19 Dec 2022 by omid amin javaheri
salam Ali this is your answer have good time
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,...
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...
19 Oct 2015 by OriginalGriff
It doesn't quite work like that.We do not do your work for you.If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys.
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[^].
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...
28 Apr 2015 by pierrix
The answer is here :https://github.com/meteor/meteor/wiki/Using-Meteor-behind-a-proxyThank you.Pierre.
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...
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...
21 Nov 2013 by Ralph Varjabedian
With one function call, wrap a class with a proxy in Javascript. A precursor to easy error mocking in node.js using mocha
16 Jul 2022 by redtrib3
I've recently started using Microsoft Edge since it is a lightweight browser in Linux, and i cannot find a way to configure the proxy unlike Firefox which was Damn simple. I want the Proxy to listen in localhost :8000. if you have no idea like...
23 Nov 2020 by Richard Deeming
customEndpointSegment does not appear to be a standard configuration element - the only match in Google is this question. You have presumably written your own configuration section to handle this element. You will need to use that section to...
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.
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...
10 Oct 2017 by Sabarinathan A
Run .NET Core 2.0 SDK from Corporate Proxy
7 Jan 2022 by sabin 2021
I am trying to send a restsharp post request thru a proxy server, but I cant figure out how to. What I have tried: I have tried this but it didnt workvar client = new RestClient("http://example.com") client.Proxy = new...