proxy

Proxifying pages that use javascript.

Hello, I'm building a proxy and am trying to deal with a page that uses javascript. The page has a button like this: <input type="submit" ...cut this out... onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(...cut this out...)) /> When I click this button from my proxy the URL is rewritten to look like th...

NHibernate bag - real collection items instead of proxies

Hi all, I am experiencing some strange problems with NHibernate and the usage of proxy items within a bag. My mapping looks something similar to: <?xml version="1.0" encoding="utf-8" ?> <bag name="Markets" table="ITPUserWatchlistMarkets" cascade="none" lazy="false"> <key column="UserWatchlistId" /> <many-to-many class="Swan.Dom...

Get contents of a url using Proxy, in php but without curl

I have to fetch content of some urls by using proxies from a list. All proxies requires authentication (i have username and passwords as well). Problem is i don't have curl installed on server , so can't use curl. I tried using sockets but having problem using that. Any help is appreciated . ...

C# Proxy using sockets sending javascript to client

I wrote a Proxy in C# using sockets and a TCPListener listening to a particular port. Currently the listener gets the "GET" request from the clients browser, and then uses the Socket.Send() class to forward the request on behalf of of the client. The response is recieved using the Socket.Reveive() class and then forwarded onto the client...

How to pass credentials in defaultProxy config setting?

A client is unable to use my webpart because he is behind a proxy server and they need to specify a username and password to get past the proxy. I have this in my config file right now: <system.net> <defaultProxy> <proxy usesystemdefault="False" proxyaddress="http://127.0.0.1:8888" bypassonlocal="True" /> </defa...

SharePoint and proxy problems

Ok, so I'm new to SharePoint and my knowledge of how proxy servers work is not great, so that doesn't help. I've created a custom webpart that needs to be deployed in various client environments. One of my clients is having trouble connecting to a my web services form the webpart, and my assumption is that it's because he's using a pr...

C# Http Proxy ideas?

I need a system which redirects connection requests from client machines to different sites i.e. if they type google.com they should be redirected to mysite.com Therefore I thought of creating an app that installs a proxy on user's machines so that the app could check their outgoing connections and redirect accordingly. Are there any ...

proxy with perl script

#!/usr/bin/perl -w use IO::Socket; my $sock = new IO::Socket::INET ( PeerAddr => 'remotehost', PeerPort => '1230', Proto => 'tcp', ) or die "ERROR in Socket Creation : $!\n"; print "TCP Connection Success.\n"; # write on the socket to server. $data = "this is the data to send"; $socket->send($data); # read the socket dat...

Proxy server for logging in.

Hello, I'm writing a proxy script that ideally does the following things: Proxy waits for request for certain protected pages from end user Posts login information to page. The login information is hidden to the end user. Proxy reads the 'set-cookie' response from the server and 'hands off' this cookie to the end user. At this point...

Generic Proxy Class

This may not the worded quite right but here goes anyway. If I have the following statements; DocumentMerger<EmailMerge> mailMerge = new DocumentMerger<EmailMerge>(); List<MailMessage> mailMessages = mailMerge.Process(); DocumentMerger<SmsMerge> mailMerge = new DocumentMerger<SmsMerge>(); List<SmsMessage> smsMessages = mailMerge.Proce...

cache-control no-cache mechanism (lowest common denominator behaviour in a sea of badly implemeneted legacy proxies)

I'm working on a Kerberos style cookie-based authentication mechanism for static files for the Nginx web-server (the cookie contains an encrypted string which much match with a sub-string in the URL, the sub-string is specified by a regular expression). The system does not require MITM security, and if it will we will probably just enabl...

mod_rewrite docroot to multiple subfolders dependant on subfolder name

I've been trying to get some RewriteRules working and am successful when just using for one host, but not multiple. I'm wanting "http://preview.domain.com" to point to "http://preview.domain.com/dir1" or "http://preview.domain.com/dir2", etc. Dir1 and Dir2 are as they contain a ProxyPass that points to the real domain. Here is what I...

Unable to generate wsdl file with methods having type generic collection Datatype.?

I have a web service which has a method with parameter of type Collection( of Byte). When i try to generate the proxy using the wsdl command but the datatype gets converted to single dimensional Array of Bytes. So i thought of creating the wsdl file which will have the type as Collection(of byte) using Add as Service Reference, but even...

How do I get the underlying type of a proxy object in java?

I'd like to access the classname of the underlying class which is an instance of java.lang.reflect.Proxy. Is this possible? ...

Setting up a proxy server

Hi, So I have a server set up (LAMP) server, this proxy has access to the internal network and I need to give the outside world access to this proxy in order to perform tasks. For example, you should be able to call that proxy with a POST request with the right parameters and the proxy should return the status of that post. Now let's s...

Mac OS X api for socks4a

Is there a way to setup a network connection that uses a socks4a in any of the Mac OS X api's or maybe even an external library that I can use? I found that NSStream can use a socks4 or socks5 proxy but there was nothing about socks4a in the documentation that I could find. ...

How to get rid of XmlIgnoreAttribute() when creating proxy dynamically from wsdl?

I am using WebClient to read wsdl from URI. WebClient client = new WebClient(); Stream wsdlStream = client.OpenRead(wsdlURI); ServiceDescription wsdl = ServiceDescription.Read(wsdlStream); Then I set Namespace and CompileUnit and use ServiceDescriptionImporter's GenerateCodeFromCompileUnit method to generate .cs class file. Then I co...

i want to send e-mails using smtp through proxy with delphi

Is it possible to send e-mails using smtp through proxy with delphi. I have build some e-mail sending applications before, using SSL etc. but i didn't use proxy before, has anyone idea how i can do that with delphi. Thanks. ...

How to use Apache as a proxy for JBOSS AS?

I have Apache running and serving PHP but I will also like to run JBOSS for my other web app. JBOSS is running on port 8080 while Apache is running on port 80. If there is a request for URL example.com, I want Apache to handle it because it is PHP backend but for URL example2.com, I want Apache to forward the request to port 8080 to be h...

nginx proxy from 80 to 444 same IP

Hi, I have some webs that are served by nginx with SSL (443) without problems. Now, I have the web mail serving SSL on port 444, but I want nginx to proxy from 80 to 444 when webmail.mydomain.com reaches. I've tried some config but no one of them worked. This is the last one ... thanks, m. server { listen 80; server_name ...