proxy

Writing a tcp proxy (for http, smtp or similar) in java works non-ssl but doesn't work ssl

Hi i'm trying to write a proxy for simple services like http and smtp using java. so far i've got this: class Main { public static final int listenPort = 465, // port to listen on remotePort = 465; // port to connect to public static final String remoteH = "";// my mail server hostname here public static void main(String[] ...

Automatically converting an A* into a B*

Hi, Suppose I'm given a class A. I would like to wrap pointers to it into a small class B, some kind of smart pointer, with the constraint that a B* is automatically converted to an A* so that I don't need to rewrite the code that already uses A*. I would therefore want to modify B so that the following compiles... struct A { void...

How do I render a site out on my own domain with Ruby on Rails or anything?

This is what I'd like to achieve: User input URL (http://google.com for example) GET the page, and render it on my own domain Traverse the DOM (Using JS) and all that jazz The problem is I don't want to use an iFrame, because then I can't traverse the DOM of the page loaded. The only solutions I can think of is to parse the page for...

C# SOCKS proxy service for HTTP requests

I'm trying to build a service that will forward HTTP requests from agents like a browser to the Tor service. Problem is, the Tor service only accepts SOCKS4a connections. So my solution is to listen for HTTP requests, get the URL they're requesting, and make a request via Tor with the help of the Starksoft.Net.Proxy library. Then return...

Is there a JSON library that can serialize Proxy objects?

Using ActiveObjects as my ORM and Gson as my JSON processor. Ran into a problem going toJson from persisted objects. The problem is that my persisted class is actually an Interface and AO is proxying that object under the hood. Here's some sample code: Venue venue = manager.get(Venue.class, id); gson.toJson(venue); Comes ...

spring.net proxy factory with target type needs property virtual ?

Hi all, I'm creating spring.net proxy in code by using ProxyFactory object with ProxyTargetType to true to have a proxy on a non interfaced complex object. Proxying seems ok till i call a method on that object. The method references a public property and if this property is not virtual it's value is null. This doesn't happen if i use S...

Apache, include correct "Server" header when proxying

I got the following section in mine httpd.conf <virtualhost *> ServerName my.domain.com ProxyRequests off ProxyPass / http://192.168.1.193/ ProxyPassReverse / http://my.domain.com </virtualhost> The problem is that apache replaces the "Server" header with it's own IP address. How do I force it to use "my.domain.com" in...

Caching web API proxy?

I was wondering if anyone knows of a caching proxy specifically for dealing with API responses? Ideally, I'd be able to declare what caching policy to use for different API semantics, e.g. cache album art for 1 day, cache favorite tweets for 5 minutes, cache map tiles forever, except invalidate when this other API is called. I know abo...

c# dynamic proxy

How determine in C# if an Object is the original object or a dynamic proxy of the original object? I run into this need playing with nhibernate. ...

Transparent proxying - how to pass socket to local server without modification?

Hello, I have a program that listens on port 443 and then redirects to either an SSH or HTTPS local server depending on the detected protocol. The program does this by connecting to the local server and proxying all data back and forth through its own process. However, this causes the originating host on the local servers to be logged...

Where to find great proxy servers for testing GeoIP services?

We would like to test a GeoIP-Service. Therefore we need to go to the site with an IP from another country. There are a lot of free proxy lists like http://nntime.com/proxy-country/ The problem with them is, that only the CoDeen-Proxies are working. But with CoDeen you can't select your country of origin (the same as with TOR). You get...

Access SOCKS5 proxy using HTTP header

If I am making a proxy factory, can I just make the outgoing request saying Proxy::HTTP (there's a similar enum for SOCKS) and the SOCKS5 proxy server should automatically detect and handle that correctly, right? ...

WCF proxy: Do I need to create a new and different proxy for each binding?

Hi, Let's say that I have created a WCF proxy from a WCF service (which is configured with wsHttpBinding) using Add Service (in Visual Studio 2008). Later I want to use basicHttpBinding so I'll go and change the WCF service to use basicHttpBinding. But what about the WCF proxy? Can I just change this via Web.config or do I need to crea...

Proxy Authentication Error while calling FedEx webservice

Hi all, I am trying to call the FedEx tracking webservice. Currently I am running the sample application provided by FedEx itself (Added my test account number and other details). When I run the application, I get the following error: The remote server returned an error: (407) Proxy Authentication Required. I am inside a proxy at my o...

Which technique should I learn to build personal proxy tool?

I found this site is just what I need. http://www.freeingweb.com/ I want to build a personal Poxey tool coz quite a lot of great sites were blocked for me. Which technique should I learn? Is PHP enough for the job? ...

In Java how instance of and type cast(i.e (ClassName)) works on proxy object ?

Java generates a proxy class for a given interface and provides the instance of the proxy class. But when we type cast the proxy object to our specific Object, how java handles this internally? Is this treated as special scenario? For example I have class OriginalClass and it implements OriginalInterface, when I create proxy object by p...

roll out of java web start clients

We are about to roll out a client server application build with java web start. Our main server is located in a country in Europe and we will have many users downloading our client the first day from all over the world. Since the client application is quite big in MB our wan will be utilized a lot. Is there a way to cache or pre- distrib...

How to validate xml using a .dtd via a proxy and NOT using system.net.defaultproxy

Hi, Someone else has already asked a somewhat similar question: http://stackoverflow.com/questions/1888887/validate-an-xml-file-against-a-dtd-with-a-proxy-c-2-0/2766197#2766197 Here's my problem: We have a website application that needs to use both internal and external resources. We have a bunch of internal webservices. Requests to...

How to debug dll with SchemaImporterExtension implementation

Hello, I understand it is possible to debug the dll that contains a class inheriting from SchemaImporterExtension type: http://markitup.com/Posts/Post.aspx?postId=5ec8b485-602e-441c-aa2b-27d52b4bf93b I have followed the instructions from the link above, but the method in my class (ImportSchemaType) never gets called. This is my confi...

How do I use LDAP proxy user authentication from .net?

I have a .net web application that uses simple bind to query the LDAP. The application uses integrated windows authentication. Do you have any recommendations on which option to use to authenticate against the LDAP: 1. simple LDAP bind using the logged in user's credentials 2. simple LDAP bind using a service account created for the appl...