134 questions
Best practices
0
votes
4
replies
105
views
Python: two Flask projects under the same HTTP Port
I have 2 separate projects running on the same Linux server. Both projects based on Flask. Due to infrastructure restrictions I'm able to use only one HTTP Port on the server.
I would like to route ...
0
votes
0
answers
256
views
C# WebClient with WebProxy returns a 400 error
I have a WebClient that works fine without the proxy, however I need to utilize the proxy (requirement - so please understand it is required). The problem is when I use the proxy I am getting a 400 ...
0
votes
0
answers
1k
views
Connect to Azure Storage blob Behind Proxy: The proxy tunnel request to proxy 'http://ipaddress:port/' failed with status code '407'
Follow code available on Microsoft documentation portal but what if I want add the proxy to it? I'm using .NET Core 6+
string blobstorageconnection = pConfig.AzuerBlobStorageConnectionString;
...
1
vote
0
answers
884
views
Field not found, node: passthrough in traefik for tcp
I have written this dynamic config for Apache2 which is hosting my personal website with its own SSL certs.
My personal website is hosted from home and gets picked up via proxy running on the remote ...
0
votes
0
answers
204
views
Setting WebProxy when using NServiceBus + Azure Servicebus
I am currently writing a couple .NET core of applications using NServiceBus with AzureServiceBusTransport, but I cannot find any way of configuring it with a WebProxy. When using Azure Servicebus ...
1
vote
0
answers
409
views
.Net trying to load 'System.Net.WebProxy' from wrong assembly 'Microsoft.Extensions.Options'
My application in AspNetCore 3.1, runs locally without any issues with dotnet run. But when running the application in Docker i'm getting the following exception:
System.TypeLoadException: Could not ...
0
votes
2
answers
2k
views
Authentication failed because remote party has closed the transport stream, need solution
Our VPC of company using an http system proxy. Due to the fact, there are no https proxy and any web links should using http proxy even it is a https.
I tried to add these two solutions to my C# code, ...
1
vote
1
answer
465
views
how to set autoconfig.url python selenium
In Java i am able to set AutoConfigUrl like mentioned below,
how to do the same in python ?
Proxy proxy = new Proxy();
proxy.setProxyAutoconfigUrl("http://wpad/wpad.dat");
1
vote
0
answers
162
views
Is WebRequest.DefaultWebProxy common to all applications running in the browser?
Due to some reasons (mentioned in this post), To handle the proxy in our web application, I have assigned the user-defined proxy values to WebRequest.DefaultWebProxy.
Code:
var proxy = new WebProxy(...
2
votes
2
answers
3k
views
How to connect to Azure Service Bus Topic through proxy - C#?
I am working on a web application that displays the Azure Service Bus Topics details when we provide the namespace connection string and topic name. Here is the code I used for this:
//To Check ...
0
votes
0
answers
344
views
c# Connect via a proxy
Our system when we are on the corporate network connects through a proxy, I'm struggling to get my application to connect
The only way i've been able to get it to connect is without a proxy, off our ...
1
vote
5
answers
716
views
Connect over company proxy with user name
I am trying to connect to external IP address but I am behind company firewall, so I need to connect over the proxy.
I run a test with curl:
curl -v https://IP_ADDRESS_OF_EXTERNAL_CLIENT:6125 -x http:/...
2
votes
1
answer
15k
views
WKwebView give error intermittently with WebPageProxy error code 1003 in iOS app
I have iOS app in which I have WKWebview. Used for loading HTML from remote URL. I get the error in log
[Process] 0x1550bfe18 - [pageProxyID=42, webPageID=43, PID=1902] WebPageProxy::...
4
votes
0
answers
1k
views
Limit MITMproxy memory usage
We plan on using mitmproxy for our test and staging environments. However, we are running into the issue that these environments have limited memory available. MITMproxy seems (according to spec?) to ...
0
votes
0
answers
123
views
list index out of range - split() function in python 3
I create a web proxy server and try to parse the url from the header but I get a problem with split()
def proxy_thread(connectionSocket,addr):
request = connectionSocket.recv(Buffer)
GETREQ ...
0
votes
1
answer
159
views
list index out of range (Web Proxy Server)
I have a project about WebProxyServer. When I run the code, it has error "list index out of range." I can't find where is a mistake.
def proxy_thread(conn, client_addr):
# get the request from ...
3
votes
1
answer
3k
views
Use WebProxy with msal4j
Our daemons application is using msal4j 1.3 to get access token from https://login.microsoftonline.com/. However, in some of our customer's production environment, it is not possible to access https:/...
0
votes
1
answer
243
views
Change webclient proxy with every new request
How can I change the proxy every time when I make a new request?
If I start the application and run this request multiple times, I can see it uses the first proxy used, even if I change the parameters ...
3
votes
1
answer
1k
views
Problems setting proxy on HttpClient
In my C# application I'm trying to send an HTTP request to an external company outside of our firewall. When I use the below code, I'm getting back an error that the remote site has forcibly closed ...
1
vote
0
answers
356
views
WebProxy Test Connection Strange Behaviour
I am writing a function to test proxy server connection. User need to fill a web form and need to provide following:
Proxy Server Ip Address
Proxy Server Port
Check a chekbox if authentication is ...
1
vote
1
answer
1k
views
C# RestSharp Return Empty String
I have this code both in my console app and webapi app
static void TestHitOtp()
{
try
{
string urlPOST = ConfigurationManager.AppSettings["OtpUrl"];
string ...
0
votes
1
answer
2k
views
Jenkins Slave Agent Proxy 407
I have a Jenkins installation on Windows Server which consists auf one master node and two build nodes. Jenkins master as well as the build nodes are running as windows service under a domain service ...
1
vote
1
answer
336
views
Powershell to execute WCF service with Proxy
I am trying to execute a WCF service / WSDL using Powershell, and I found I can use "New-WebServiceProxy" cmdlet to do the job.
Unfortunately it appears that if I execute directly on my environment, ...
1
vote
0
answers
205
views
Know original IP address of user when request coming from a web proxy
Context
I am working on an application which detects the user's IP address from the request and restricts them from doing certain actions on a page based on the country they are in.
Problem
When a ...
1
vote
1
answer
2k
views
IntelliJ IDEA Browse JetBrains Plugins dialog box is empty
I'm using Intellij IDEA Ultimate 2016.3.4.
File / Settings / Plugins / Install JetBrains plugin... opens up a window named Browse JetBrains Plugins, but the main area of the window, which should ...
0
votes
1
answer
777
views
How to save web proxy enabled logs of mikrotik into remote mysql database
Currently I am developing a web application that works with freeradius. Some days before client asked me to develop a module to save users activity logs into remote database. I tried syslog-ng. I ...
7
votes
0
answers
2k
views
.net core 2.0 proxy requests always result in http 407 (Proxy Authentication Required)
I'm trying to make HTTP requests via a WebProxy in a .net core 2.0 web application. The code I've got works fine in .net framework so I know (believe) its not an environmental issue. I've also tried ...
1
vote
0
answers
368
views
WebProxy.IsBypassed and Proxy.pac
I am currently developing a .net component for the corporate environment. It needed to talk to a 3rd-party company that uses SSH to transfer file. The same component also supports FTP to communicate ...
2
votes
0
answers
1k
views
C# How to set up Webproxy with NTLM Authtification
i wanna set up a webclient with a NTLM authtification proxy, but i have some Problems to hand over the DefaultCredentials. This is my current solution, but it doesn’t work.
textBox.Text = "";
...
1
vote
1
answer
814
views
Timeout exception does not occur on time
I wrote the following code using httpwebrequest(Timeout=2000) and webproxy
The following code always will throw an exception because of wrong url ("ww.google.com")
When I run the program, I get two ...
0
votes
1
answer
854
views
Creating web proxy using node js and express
I am trying to create a personal web proxy using javascript so that users can browse the internet through a website. Example http://webproxy.to/.
I'm trying to send the response back from a url to ...
1
vote
1
answer
330
views
Testcafe webproxy dropping payload
I'm new to testcafe and don't know if I am doing something wrong with my tests. When I call a post to my endpoint It seems the payload is lost somewhere in the proxy.
Here is the request that is sent:
...
0
votes
1
answer
3k
views
Dealing with HTTPS CONNECT requests
I'm writing a really simple web proxy through python and right now I'm working on dealing with HTTPS CONNECT requests so I can open HTTPS websites. I'm trying to set up an SSL tunnel but my code is ...
0
votes
0
answers
96
views
TCP connections are stacked until 65k when using HttpWebRequest fetching function - internet connectivity is lost
I don't understand what may cause this error
I am using the below function with about 1000 concurrent connections
Each connection uses a different webproxy
After a while like 15 minutes working, ...
1
vote
1
answer
560
views
How to fully terminate HttpWebRequest
Even though i am properly terminating everything when i check existing HTTP connections i see they are not terminated
For example when i open 200 concurrent connections by starting different tasks
I ...
0
votes
0
answers
132
views
Too many proxy connection kills window's resolving hosts ability
My problem is a bit complex and i don't know how to explain it best
I have a 125k public proxy list. As you can also guess, most of them are invalid
I would like to quickly test all of them
So i ...
0
votes
0
answers
6k
views
Python Web Proxy Error: No address associated with hostname
I am writing a really basic web proxy in Python. In it's current state all I want it to do is take the request from the client and pass it straight through to the web, no caching or anything like that ...
0
votes
1
answer
75
views
How to access a page behind proxy
My code is working if I hardcode my credentials
string url;
string proxyAddress;
string user ;
string password;
Stream objStream;
WebProxy proxyObject = new WebProxy(proxyAddress, true);
proxyObject....
-1
votes
2
answers
1k
views
How to read an HTTP response from a server (as a web proxy) and send response to client
I am writing a web proxy and so far I can read a GET request from a client, format it, and send it to the server, I believe that I have been able to get the response back from the server, but am ...
1
vote
1
answer
1k
views
C# Download File from HTTP File Directory getting 401 error or 403 error
I’m trying to download several files from a local network device:
http file directory
I want to write a code that will automatically download all those .avi files to my pc drive.
I have 2 problems:
...
0
votes
1
answer
1k
views
vb.net multiple webproxy in httpwebrequest
I am currently working on a VB.net project where I need to get http responses from a certain URI but the requests needs to go through http proxy which I am perfectly fine with. The problem occurred ...
1
vote
1
answer
1k
views
twilio java connection with proxy authentication
I am setting up a java Twilio connection using the example Twilio java-sdk from the api examples here.
The only difference is I need to run my Twilio connection through a web-proxy with ...
1
vote
1
answer
1k
views
Set network Credentials for stackExchange Redis connection multiplexer
I have setup a remote redis server.
The client uses a web proxy to connect to the internet.
How do I set the StackExchange.redis ConnectionMultiplexer to use a webProxy in C#?
The following is ...
1
vote
1
answer
2k
views
Configuring squid so that browser doesn't prompt for login/password
At the company where I work, we have a web proxy and the browser prompts for login/pass every time I open it. After seeing this, I installed squid in my computer, configure my company web proxy as a ...
0
votes
0
answers
128
views
Proxy asking for credentials
This is what I currently have
using (WebClient client = new WebClient()) {
WebProxy proxy = new WebProxy();
//proxy.Address = new Uri("http://" + proxyIP.Text + ":" + proxyPort....
0
votes
2
answers
1k
views
WebProxy URI is not valid
This is the code I currently have
using (WebClient client = new WebClient()) {
WebProxy proxy = new WebProxy();
proxy.Address = new Uri(96.44.147.138:6060);
proxy.Credentials = new ...
1
vote
1
answer
877
views
PHP Web Proxy - Make all resources on web site pass through the proxy?
I am creating a simple PHP web proxy. The PHP script currently correctly fetches the page's HTML from the backend.
However clearly this is not enough since all the resources (img, script, link, a) ...
-2
votes
2
answers
493
views
download data using web client through proxies on a C# console application
I have written a code to hit a particular URL and download data using a WebClient, and have set a proxy which I have purchased from MyPrivateProxies.net to this webclient with credentials and other ...
0
votes
0
answers
258
views
Accessing web-server in private network from arbitrary clients
I am looking for the best practice to allow accessing a web-server in a private network from a client running on an arbitrary machine (possibly on another private network). Here is the typical setup:
...
5
votes
0
answers
818
views
How to cache and returning same response using web proxy (charles or any other tool)
Is there any option in charles proxy or some other tool, where I can save/cache all the request and next time when same request comes, it returns same response without forwarding request.