Questions tagged [proxy]

A proxy is a device or program that stands between two or more interconnected programs or devices. Reasons for a proxy include one or more connected parties only wanting the other to access specific data. A proxy provides a method for this.

Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

Rotating pool of proxies

It's a very simple class to get a different proxy each time it's called. I've done it because I was trying to use aiohttp_scraper and it didn't work so I have to make my own. This is just one of the ...
2 votes
1 answer
140 views

A proxy class as a generic replacement for getters and setters v2

Have you ever written proxy objects, instead of using a setter and a getter method? In that case, I'm interested in your opinion on the following design for a templated proxy. This is a second version,...
  • 1,945
2 votes
1 answer
277 views

Parse proxy strings to array of objects

The goal of this module is to take in a string (user input, someone copy and pasting a large list of proxies) and parse it into an array of objects. I appreciate any and all feedback, but I'm ...
2 votes
1 answer
311 views

Universal class for proxifying poplib, imaplib and smtplib. Lame inheritance or mock or something else?

This is wrapper for POP3, POP3_SSL, IMAP4, IMAP4_SSL, <...
3 votes
0 answers
74 views

Automatic service logging

GitHub Here is a Castle.Core based service interface decorator providing automatic logging through the ambient logging context. Logging context should be ...
  • 6,123
6 votes
2 answers
999 views

A proxy class as a generic replacement for getters and setters

(There is now a 2nd version of this code) Have you ever written proxy objects, instead of using a setter and a getter method? In that case, I'm interested in your opinion on the following design for a ...
  • 1,945
1 vote
0 answers
103 views

JavaScript Proxy: set DOM Element styles by chaining CSS setters

First time creating my own Proxy handler, instead of copy pasting code. Goal is to chain CSS definitions: style(element).color("red").background("green") and allow whole CSS ...
1 vote
2 answers
63 views

Use proxy for jQuery-like DOM extensions

I have cleared all my scripting from the use of JQuery, but sometimes I miss a few handy extensions. Now I'm playing with the idea to "extend" ...
  • 577
2 votes
0 answers
47 views

Proxy server performance improvements?

fairly new to playing around with proxy servers. Wrote a really simple one with Express to help keep some API keys secret so that my front-end app can query the GitHub API. Definitely feels a bit ...
  • 191
5 votes
1 answer
262 views

Testable REST API Client

GitHub and NuGet Allows to invoke public/private REST API just by defining an interface. 200 lines of C# in total. Demo Sample API is publicly available at http://jsonplaceholder.typicode.com: <...
  • 6,123
5 votes
1 answer
102 views

Strictly typed dynamic proxy to call dynamic object

GitHub and NuGet I would like to use DynamicObject derived types to execute REST API/NodeJS module calls. It would also help to capture API shape in a strictly typed manner, so here comes an ...
  • 6,123
3 votes
1 answer
373 views

Sticking to a working proxy generated by a rotating proxy script

I've created a script in python to make proxied requests by picking working proxies from a list of proxies scraped from a free proxy site. The bot traverses few links to parse the urls of the ...
  • 545
4 votes
0 answers
73 views

JavaScript attempt at an aspect oriented logger using proxies and reflect

I've been playing around with AOP in JavaScript to create a Logger that I can attach to classes and output what is going on (mainly instantiation, calling of functions and the results from functions). ...
  • 329
2 votes
1 answer
5k views

Web-scraping through a rotating proxy script

I've created a script in python which is able to parse proxies (supposed to support "https") from a website. Then the script will use those proxies randomly to parse the title of different coffe shops ...
  • 2,471
6 votes
1 answer
4k views

Using rotation of proxies within a Python script

I've written a script in Python using rotation of proxies which is able to fetch different titles from a website traversing different pages. I've tried to write this scraper in such a way so that it ...
  • 545
6 votes
3 answers
2k views

Creating HTTP proxies for services

I have a HTTP client factory that creates a separate HTTP proxy instance for each of my services - which are in the cloud. The factory creates each instance on the basis of an interface which the ...
4 votes
1 answer
2k views

Node.js/Express middleware to relay requests to various APIs

I am creating a nodejs middleware server that will handle api transactions from a frontend and relay them to various api's (internal and external). The primary goal is to hide api keys from the ...
  • 73
0 votes
1 answer
91 views

Different implementation of an Interface along with additional parameters

I am designing an interface for 2 distinct implementations as follows: Perform operations without client credentials ( for my local applications) Perform operations using security token. (for web ...
2 votes
1 answer
275 views

Scraping different categories using different links through proxy

I've written a script in python to scrape name, review_star and review_count by going through thousands of links (to different products) stored in a csv file using reverse search. As those links are ...
  • 2,471
2 votes
0 answers
1k views

Java Socket Proxy

I've been messing around with protocol handlers in Java, going so far as to write my own using a custom URLStreamHandler and ...
  • 718
2 votes
1 answer
2k views

Web scraping using proxy in vba

I've written a script in vba to parse movie names and year from a torrent site. The script is doing just awesome. Although the scraper is leaving no room for complaint, I'm still dubious about how the ...
  • 2,471
7 votes
2 answers
1k views

Implementing a copy on write String class using reference counting in C++

I have tried to implement a copy on write string class with value semantics and reference counting. I wanted to support indexing, so I have overloaded the operator[] and to differentiate between the ...
4 votes
0 answers
447 views

PowerShell Export-CSV with Cultural Awareness

I recently had a requirement to export data to CSV in a different culture & hit an issue (see https://stackoverflow.com/a/40871162/361842). Here's my workaround: ...
  • 1,321
3 votes
0 answers
134 views

msysGit to Unix sockets

I wrote this small script to help porting msysGit sockets to WSL ("Bash for Windows"). I'm not a big Python programmer so any feedback would be well appreciated. By the way, I made it a public Gist ...
2 votes
1 answer
1k views

Handling errors in a Python UDP proxy [closed]

The following (stripped) program receives UDP packets on port 5000 and forwards them to port 5001. It may throw socket errors on startup (e.g.: if the port is already in use), but I am not too worried ...
  • 183
2 votes
0 answers
1k views

Google Searching Bot with Proxy support

I have been asked by a client to program a bot which searches Google and will show how many no of results I get. Note: I know about Google Custom Search API and it will not produce the exact output ...
7 votes
1 answer
2k views

JSON REST client proxy generator

Trying to create something really lightweight. Sources are on GitHub. To create a proxy we need to define an interface first, e.g.: ...
  • 6,123
2 votes
0 answers
2k views

Simple TCP proxy

EDIT The previous proxy code, after thorough testing, had issues with the stream_copy_to_stream() when sending from $client ...
  • 131
3 votes
0 answers
1k views

Workaround proxy to be able to call 32-bit dll

I had a problem that I posted on StackOverflow about that I could not connect to windows phone 7 from a 64-bit application. I got one response that said I should try to create a WCF Service over named ...
  • 131
2 votes
0 answers
186 views

REST proxy in Meteor

I built a simple proxy using Meteor and its Iron Router. It currently fails at passing through other than 200 or 500 status codes, which I guess suffices. Is this ...
1 vote
0 answers
1k views

Nginx SSL proxy to squarespace.com site

I'm using SSL proxying to my squarespace.com site since they don't allow SSL. I was previously setting the HSTS header so I have some browsers that won't go to an HTTP version of my page. I need to ...
  • 111
3 votes
1 answer
6k views

Getting HTTP Status Code

I have code that take in a URL (via URL or String) and returns the status code. I am new to web development, so it is very possible that I may be taking a poor approach at this. One thing I don't ...
  • 524
2 votes
0 answers
184 views

Proxy pattern for supporting '... = ob[idx]->someObjMember = ...' type access

I've finally got a working Proxy pattern. The original task is presented here. My test case is on coliru. It appears to flow through the correct pathways, however I am grateful for feedback and ...
  • 619
12 votes
1 answer
524 views

Use of Mediator Pattern or Proxy Pattern for a game

When a Wizard casts the Monster Summoning spell, all of the summoned monsters shall follow his command. Should the Wizard interact with his summoned monsters ...
  • 1,349
4 votes
0 answers
1k views

Python proxy class

I've coded my own proxy class in python. The aim is to have a different type() but otherwise behave as identical to the underlying object as possible. I'm wondering ...
  • 219
2 votes
1 answer
5k views

Make a “Web-Proxy” - step-by-step

My problem with links is solved. Text challenge is to copy pictures on remote page to my own host, then replace the links in source code. Any idea? I started creating a web proxy. I decided to ...
  • 21
7 votes
2 answers
3k views

Proxy using socket, doubts on multithreading and connection closing

I'm trying to make a simple proxy server in Python using the socket library, mostly to understand how it works. I'm a noob both at programming and networking, so please be nice if my questions are ...
  • 71
6 votes
1 answer
3k views

HTTP Get with proxy

The code is implemented to perform HTTP get with HTTP proxy. Future object is adopted to avoid blocking in current thread. I'm not quite sure about the usage of HTTP connection pooling manager and ...
  • 307
8 votes
1 answer
722 views

A program to proxy MDNS requests to the DNS server

I wrote a program to proxy MDNS requests in a local network to the DNS server. This is useful because in some private networks, host names ending in ".local" are configured in the DNS server. But "....
3 votes
1 answer
689 views

Creating Proxy classes for immutable objects

As a bit of a learning project, I decided to take the concept of proxying objects a bit further and extend it to creating proxy classes which create proxy'd objects. I originally found the idea of ...
2 votes
1 answer
276 views

Generated code proxy

In my library Transfuse I use a code generator to build a handful of classes that look up resources. Each of these look up classes are proxied by a static utility class so they may be referenced ...
5 votes
2 answers
10k views

Casting to less generic types

The source code, or rather the concept I'd like to get reviewed is what now allows me to do the following during reflection: ...
11 votes
3 answers
6k views

Ruby Koans Proxy Project

I've just finished the Ruby Koans and one of the last projects was creating a Proxy class that sends methods to another class. I was wondering whether you would change anything about my solution (if ...
  • 111
4 votes
1 answer
573 views

Refactor for using ChannelFactory

I use VS 2008 and .NET 3.5 I have this code using CustomChannelFactory and Proxy ServiceReference. I would like refactor using lambdas, Action, ... any suggestions ? ...
  • 261
2 votes
1 answer
2k views

Hibernate proxy converter for GWT

Here's a class that converts Hibernate proxies to normal classes. This is useful with GWT for example, when sending objects loaded from database to the GWT client. Please review it. ...
  • 121
11 votes
3 answers
4k views

Windows service for monitoring network interface changes

I'm currently working on several projects for my company to help reduce the amount of calls we have to deal with so we can focus on higher priority task, such as server resource reduction, etc. The ...
  • 1,196