Questions tagged [proxies]
215 questions
43
votes
3 answers
Why is my Entity Framework Code First proxy collection null and why can't I set it?
I am using DBContext and have two classes whose properties are all virtual. I can see in the debugger that I am getting a proxy object when I query the context. However, a collection property is still null when I try to add to it. I thought that the…

Rob Kent
- 5,183
- 4
- 33
- 54
18
votes
1 answer
Mocking a property of a CGLIB proxied service not working
I'm having an issue when trying to mock a property of a service from within a Junit test:
@ContextConfiguration("classpath:application-config.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class FooServiceTests {
@Autowired
private…

franDayz
- 883
- 10
- 22
14
votes
3 answers
Using and Randomizing Proxies
I'm just wondering how you would go about setting a specific proxy for each request?!
The following block quote is the only thing the documentation says about this. Also, the documentation only provides an example for Java...
Firefox version 48 and…

oldboy
- 5,729
- 6
- 38
- 86
9
votes
2 answers
Equality between Proxy and target object
Javascript's new Proxy feature offers some interesting features for debugging. For example you can "defend" an object by putting it behind a Proxy with a get handler that throws if you access an undefined property. This helps catch typos and other…

AshleysBrain
- 22,335
- 15
- 88
- 124
8
votes
3 answers
Python Proxy Error With Requests Library
I am trying to access the web via a proxy server in Python. I am using the requests library and I am having an issue with authenticating my proxy as the proxy I am using requires a password.
proxyDict = {
'http' :…

Mark Collier
- 157
- 2
- 3
- 11
8
votes
2 answers
Python selenium chromedirver( headerless) use proxies( IPV6 ) with Authentication
I have IPV6 proxies which require Username and Password to work,
Is there any way I can use these proxies in ChromeDriver ( Headerless ) with username and password.
proxies in format -
ip_address:port username:password
if not then is there any way…

Aditya Mishra
- 194
- 1
- 13
8
votes
2 answers
C# TcpClient.Connect via a proxy
I've searched high and low trying to figure this out, but everything I've seen so far, people are just telling me to use other methods.
With that out of the way, my issue is that I'm trying to connect to a server through a TcpClient using a socks 5…

André
- 343
- 2
- 7
- 15
7
votes
1 answer
Symfony2 Lazy Services When to use?
I have a question regarding symfony2 lazy services. When we should use lazy services, and when we should avoid them? Is there any overhead if we use lazy services?

Ashish Awasthi
- 1,484
- 1
- 19
- 34
6
votes
1 answer
How to generate Proxies manually without CLI in Doctrine?
I'm using Zend Framework to create a web application. Based on several recommendations, I chose Doctrine as my RDBM system.
;---------------------------------------------------
; DOCTRINE…

shiva8
- 2,142
- 2
- 19
- 24
6
votes
1 answer
Selenium with proxy not working / wrong options?
I have the following working test-solutions which outputs the IP-address and information -
Now I want to use this with my ScraperAPI-Account with other Proxies.
But when I uncomment this 2 lines -
# PROXY =…

Rapid1898
- 895
- 1
- 10
- 32
6
votes
4 answers
Dynamically change proxy in HttpClient without hard cpu usage
I need to create a multithreaded application which makes requests (Post, get etc)
For this purpose i chose Httpclient.
By default it does not support Socks proxies. So I find Sockshandler (https://github.com/extremecodetv/SocksSharp) can be used…

user6441558
- 71
- 1
- 7
5
votes
1 answer
How to mix CGLIB and JDK proxies in Spring configuration files?
This thread is related to a problem I am encountering here regarding the needs for access to protected methods of an advised class. I'm using Spring 3.0.6, and have created a Spring profiling aspect that I am applying to a significant number of…

Eric B.
- 23,425
- 50
- 169
- 316
4
votes
3 answers
Using C# WebClient with a Proxy - no request made to proxy server?
We have a background operation (Window service) that we want to use through a proxy server.
Basically, we're doing this:
public WebClient GetWebClient(){
var webClient = new WebClient();
webClient.proxy = new WebProxy(Configuration.ProxyHost,…

ddango
- 946
- 1
- 12
- 25
4
votes
1 answer
Using a proxy to access the dataset of a custom element
Imagine this trivial custom element:
document.getElementById('foo').dataset.cuteNumber, as expected, returns the String "7". I would like to create a proxy for accessing dataset properties that does the…

connexo
- 53,704
- 14
- 91
- 128
4
votes
2 answers
new Proxy does not work on functions in Chrome
new Proxy(function() {}, {})
Creating a proxy to watch a function does not work on Chrome. Instead it throws an error:
Uncaught illegal access
I want to watch a function and create a proxy handler for when its properties are accessed. Seems fine…

northamerican
- 2,185
- 1
- 20
- 31