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[] ...
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...
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...
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...
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 ...
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...
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...
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...
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.
...
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...
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...
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?
...
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...
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...
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?
...
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...
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...
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...
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...
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...