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

Proxy 

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?
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.
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
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.
21 Oct 2015 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Not a specific question. Next time please come with a specific programming issue.
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...
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...
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
20 May 2012 by abhinav_soni
This article provides alternative to Java's Proxy class with bytecode manipulation.
11 Sep 2013 by Guirec
A journey into AOP land with concerns, pointcuts, joinpoints, advices, aspects, interceptors, proxies, targets, mix-ins, composites...
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 =...
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...
14 Aug 2014 by Christian Amado
Inside your web.config... Hope it helps.
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
23 Nov 2020 by xhon
I created a Rest web API and now I want to call the operations exposed by the API from a Proxy. My environment is Visual Studio, C#. As the operations that I exposed in the API share a part of the URL/endpoint ("api/NameOfTheController"), I...
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...
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...
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...
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...
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,...
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
19 Dec 2022 by omid amin javaheri
salam Ali this is your answer have good time
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 ...
28 Apr 2015 by pierrix
The answer is here :https://github.com/meteor/meteor/wiki/Using-Meteor-behind-a-proxyThank you.Pierre.
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...
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: ...
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.
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.
5 Oct 2015 by User 11836473
I'm trying to do a multithreaded proxychecker, however GetResponse throwing errors. I'm stuck please help.using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Linq.Expressions;using System.Net;using System.Text;using...
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...
11 Mar 2021 by Tilier
So, I've tried really hard finding an answer to this, but I can't. Can someone please explain to me how to make a CORS proxy for an API? I am using api.scratch.mit.edu, and I want to use their format but for my own website, maybe scratchapi.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...
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...
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...
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...
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...
11 Jan 2022 by uwsdfw123
I'm using node-http-proxy to run a proxy website. I would like to proxy any target website that the user chooses, similarly to what's done by https://www.proxysite.com/, https://www.croxyproxy.com/ or https://hide.me/en/proxy. How would one...
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.
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. ...
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...
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:
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 Nov 2020 by Sacha Barber
404 points to unauthorized, I would download Postman and try it in there 1st. Try that before code
27 Nov 2020 by xhon
I'm on a proxy and I get a WebException while calling a method which should return HTTP response in JSON format. The error is the following: Server Error in '/' Application. 404 Description: An unhandled exception occurred during the execution...
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...
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#,...
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...
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...
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...
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,
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...
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...
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...
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...
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...
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...
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/[^]
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...
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!
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...
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...
17 Nov 2020 by xhon
I'm creating a web service by using WCF (Windows Communication Foundation) and Visual Studio 2019. I'm reusing the Business Logic Layer, the Data Access Layer and the Data Model of an old solution. I already created a new WCF service...
1 Apr 2013 by Zainy95
Hey there!I'm student of Computer Sciences at university level and its quite painful to set proxy in web browsers we want to use and different applications like Internet Download Manager as university uses proxy server. I was thinking of developing a small utility which sets proxy in...
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...
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...
13 Jan 2016 by saifmossel
Hi I wrote as follows for post param. formData = m_curl.BuildForm(_T("bscreenview"), _T(""), _T("bscreenssn"), _T(""), _T("bscreenbserial"), _T(""), _T("bscreendomain"), _T(""), _T("bscreenano"), _T(""), _T("bscreentype"), _T(""), _T("hashparams"),...
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.
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.
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...
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...
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...
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...
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...
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.
11 Mar 2014 by mbarbac
Implementing the Repository and Unit of Work Patterns dynamically using Kerosene ORM
9 May 2022 by Mark Pelf
In this article, we build a practical reusable Logging Proxy in C#
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...
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 Dec 2015 by Oliver Bleckmann
sounds like a load blancing scenario, search google for "nginx node.js load balancing"
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...
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...
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,
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...