proxy

PHP: Is there a way to change request address?

For some reason, if I request a file using a url such as this: http://localhost/proxy.php?url=http%3A//anintranetsite/file.jpg It works! I can get the file. But if I use, http://127.0.0.1/proxy.php?url=http%3A//anintranetsite/file.jpg I cannot get it to work. I am not unnderstanding what is going on... Any thoughts on what co...

Nhibrnate POCO objects with relationships but no collections - Mutli tier

Hi, This is a bit of conceptual questions but I think it’s the right place to ask it. i am working with NHibernate for some time but I find it difficult to use the collections within the POCO objects 1. I think the proxy concept is nice but when you want o use it in multi tier architecture it become a challenge. 2. I want to add a busin...

Java Proxy client class that supports authentication

I'm looking for a java socks Proxy client class that supports authetication, any suggestions? The java.net.Proxy does not support authentication. Edit: I can't seem to find a way that would attach authentication data to particular proxy host via socket. Authenticator.setDefault() allows only one set of credential. Authenticator.s...

Best method to remove session handled by Session Proxy pattern

Hi all, I would like to use Proxy pattern for Session handling. In my session proxy class I have something like that: public static class SessionProxy { private const string ThemeNameSessionName = "ThemeName"; private const string PasswordExpirationDaysSessionNam = "PasswordExpirationDays"; /// /// Gets or sets ...

Disallowing proxies from POSTing

Hi there! I want to disallow proxies and spambots from posting in my website. What is the best way to do so? I've downloaded a blacklist and my first idea was to disable each of ips in my .htaccess file, but after downloading the list, I found out that it contained almost 9 million entries. My other idea was to split each IP in 4 par...

Retrieve Proxy IP address C#

Hi, I need to know what this proxy and in the past I used an IP webservice to get the IP. Is there was some way in C# to get the actually proxy IP address. If I could just ping somewhere and get the IP that way that would be ideal. ...

UDP Connection through proxy in Delphi

Hello, I have an application that connects to a udp server, and I can't seem to get it going when I am behind a proxy. Here is the code I have, which is working fine when Not behind a proxy. function TfrmMain.SendCommand(ServerName, IP: String; Port: Integer; Command: String): String; var Udp : TIdUDPClient; Count : Integer; Res...

Non-Transparent Proxy Caching of SSL

I asked the question before but didn't phrase it quite right. I'm using RESTful principles to build a secure web-app that uses both transport authentication/encryption and message level security. The message level security is essentially client-independent (still encrypted though), and hence this allows the individual messages to be cac...

Does stringWithContentsOfURL use the system proxy settings?

I am using the following code to fetch the contents of a web page but it needs to follow all the network rules etc as defined in the user's system prefs NSURL *url = [NSURL URLWithString:@"http://thetalkingcloud.com/static/ping_desktop_app.php?v=1.0"]; NSError *theNetworkError; NSString *content = [NSString stringWithContentsOfURL:ur...

Best way to proxy http requests in Twitter badge to avoid IE security warning?

I'm trying to use a Standard Twitter badge on a site with a members area which switches the user to https automatically. On IE 8 this results in the annoying but true "This page contains both secure and non secure items" warning. I found other threads on stackoverflow and vague suggestions on other sites that I could have my Twitter ba...

Posting with snoopy using proxy takes too long

Hi I have a php script which tries to do a post. I use Snoopy class and also I use proxy. I managed to post but when I use a proxy the posting is extremely slow. I mean it can take till 30 minutes. I don't want to block my script for 30 minutes waiting for a post. Any idea how could I solve this? The code looks like: require('../includ...

How do I create a lighttpd proxy rule to redirect on differant ports based on url param

I currently have a proxy.server rule in lighttpd.conf that forwards all requests of routemsg.pl to port 1530: $HTTP["url"] =~ "/routemsg.pl" { proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 1528) ) ) } How can I change the rule to allow the requester to pass a port param in the url and that param be then used as the po...

is it possible to get a class return true in is_null?

I am building some kind of a proxy pattern class for lazyloading sql queries. the proxy pattern uses __call, __get and __set for relaying calls on its object, but sometimes there is no object, if the sql did not return any rows. my question is then, if i do a is_null() on the proxy class, is it possible to make the class return true th...

Enforcing browsing through a proxy - trhough a servlet, java script or custom application

Hello, We have a proxy server that implements a set of functions. I would like to be able to enforce browsing through this proxy without setting the proxy settings in the browser. This is for demonstrating purposes, without the need to enforce the demonstrated party to change anything in the environment. There are a few ways to impleme...

Launch options to force Java socket connections to localhost?

Hello, I'm trying to find a way to force any connection attempts a Jar makes to an external IP through my proxy server, which is running on localhost(Also a Java application). Once the proxy server receives the connection it will open a connection with the external IP and begin routing the IO to and from the client/server. I've been Goo...

Using dynamic proxy on NHibernate objects

Hi, I'm trying to use Castle.DynamicProxy2 to cleanup code within NHibernate persisted classes. Here is a simple version of it. The Pet class: public class Pet { public int Id { get; set; } public string Name { get; set; } public int Age { get; set; } } And its mapping file: <class name="Pet" table="Pet"> <id name="Id...

postfix behind a proxy

Hello, I have setup a Postfix mail server. This server is behind a network proxy. whenever I send mail to external mail servers like [email protected] I get 'connection refused' message in my postfix mail logs. But I receive the mail sent via postfix mail account to my email account that is on my company's corporate mail server (i.e insid...

Emacs behind http proxy

Emacs is able to access the internet with packages such as url.el or the W3 web browser. Also, the Emacs Lisp Package Archive is heavily dependant on package url.el. Now, how do I configure Emacs to use my HTTP proxy to connect to the internet in general ? Bonus points for any help with ELPA behind a proxy. Yes, I've had problems wit...

Multithreaded Downloading Through Proxies In Python

What would be the best library for multithreaded harvesting/downloading with multiple proxy support? I've looked at Tkinter, it looks good but there are so many, does anyone have a specific recommendation? Many thanks! ...

Set a proxy individually for each WebBrowser?

I just found out how to change proxies without restarting the WebBrowser control, but that seems to set it for ALL WebBrowser controls on my form. I want to be able to set a different proxy for each control. Is this possible? If not, is there any tricks I can do to get around this? Maybe some kind of daemon that watches a port and trans...