Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
58 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). ...
2
votes
1answer
2k 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 ...
6
votes
1answer
2k 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 ...
6
votes
3answers
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 ...
2
votes
1answer
1k 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 ...
0
votes
1answer
81 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
1answer
185 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 ...
1
vote
0answers
967 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 ...
2
votes
1answer
1k 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 ...
7
votes
2answers
416 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
0answers
255 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: ...
3
votes
0answers
93 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 ...
1
vote
1answer
421 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 ...
2
votes
0answers
926 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
1answer
1k 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.: ...
2
votes
0answers
1k views

Simple TCP proxy

EDIT The previous proxy code, after thorough testing, had issues with the stream_copy_to_stream() when sending from $client ...
3
votes
0answers
815 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 ...
1
vote
0answers
776 views

Proxying Socket.io requests and other HTTP requests

I have written a proxy server using node HTTP proxy, which can also be found on Github. I am bit unsure about whether I am proxying the web sockets correctly. ...
2
votes
0answers
167 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
0answers
662 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 ...
3
votes
1answer
5k 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 ...
2
votes
0answers
133 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 ...
12
votes
1answer
371 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 ...
4
votes
0answers
906 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 ...
2
votes
1answer
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 ...
6
votes
2answers
2k 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 ...
6
votes
1answer
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 ...
8
votes
1answer
629 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
1answer
579 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
1answer
270 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 ...
3
votes
2answers
9k 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
3answers
5k 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 ...
2
votes
1answer
543 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 ? ...
2
votes
1answer
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. ...
9
votes
3answers
3k 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 ...