proxy

C# creating attribute that indicate running code after property call

Hello, I would like to create an Attribute to put on properties. The properties that will contains this attribute will execute another method after setting a new value. For example: [MethodExecute(Log)] [MethodExecute(Save)] public string Name { get { return name; } set ...

java runtime 6 with socks v5 proxy - Possible?

I have written an application that (amongst other things) runs a local service in windows that acts as a SOCKS v5 proxy for Firefox. I'm in the debugging phase right now and have found certain websites that don't work correctly. For example the Java Applet for Picture Uploading on Facebook.com fails because is is unable to lookup domain...

How do I make HttpURLConnection use a proxy?

If I do this... conn = new URL(urlString).openConnection(); System.out.println("Proxy? " + conn.usingProxy()); it prints Proxy? false The problem is, I am behind a proxy. Where does the JVM get its proxy information from on Windows? How do I set this up? All my other apps seem perfectly happy with my proxy. ...

How to determine the origin of a LocalJumpError?

How can I determine easily and programmatically whether a LocalJumpError arose from the caller's immediate failure to supply a needed block to a method, or from deeper within that method and others it invokes? By "easily," I mean I'd like to avoid string inspection/regexen on $!.backtrace. A solution applicable to 1.8 and 1.9 is also p...

C# code to allow Proxy access (to get Google API C# example working)

Hi, Is someone able to assist in helping understand how to get this C# example working through my proxy server. I note there is a code sample at http://code.google.com/apis/gdata/articles/proxy%5Fsetup.html#dotnet, that provides some direction, however I'm having trouble regarding how to apply this to the DocListExporter example. In o...

407 Authentication required - no challenge sent

Update: If you've just arrived at this question, the general gist is that I'm trying to make a HttpWebRequest via a proxy, and I'm getting a 407 from our strange proxy server. IE,Firefox,Chrome all manage to negotiate the proxy sucessfully, as do Adobe Air applications. It may be important that the Google Chrome web installer actually fa...

Proxy with urllib2

I open the urls with site = urllib2.urlopen('http://google.com') And what I wanna do is connect the same way with a proxy I got somwhere telling me site = urllib2.urlopen('http://google.com', proxies={'http':'127.0.0.1'}) but that hadent worked either I know urllib2 has something like a proxy handler but I cant recall that function ...

Python HTTPS client with basic authentication via proxy

From Python, I would like to retrieve content from a web site via HTTPS with basic authentication. I need the content on disk. I am on an intranet, trusting the HTTPS server. Platform is Python 2.6.2 on Windows. I have been playing around with urllib2, however did not succeed so far. I have a solution running, calling wget via os.syste...

What's a Django/Python solution for providing a one-time url for people to download files?

I'm looking for a way to sell someone a card at an event that will have a unique code that they will be able to use later in order to download a file (mp3, pdf, etc.) only one time and mask the true file location so a savvy person downloading the file won't be able to download the file more than once. It would be nice to host the file on...

With python.multiprocessing, how do I create a proxy in the current process to pass to other processes?

I'm using the multiprocessing library in Python. I can see how to define that objects returned from functions should have proxies created, but I'd like to have objects in the current process turned into proxies so I can pass them as parameters. For example, running the following script: from multiprocessing import current_process from...

Adding a custom SOAP header using c#/ASP.NET

I am trying to use a traffic web service. An example of the SOAP request is given below. I have created a proxy class in c# using Wsdl.exe from the WSDL structure. What I think I need to do now in somehow insert the 'authenticate' SOAP header into the SOAP structure for the method call. I'm unsure how to add the header to the service ...

iPhone NSURLConnection through Proxy+Auth

I am using NSURLConnection to make connections to a server, through a proxy that requires authentication this fails. The proxy settings are set under the WiFi, but the connection still fails. I believe there is a part of CFNetwork that can fix this, but this might be just for streams and I am unsure of how to implement it with NSURLConne...

WebClient and proxy server (Ntlm auth maybe?)

Hi, Having some issues connecting to internet from an application where a customer is using a proxy server. The following code seems to work most other customers, including those that use proxies. Dim wc As New WebClient wc.UseDefaultCredentials = True wc.Proxy = WebRequest.DefaultWebProxy wc.Proxy.Credentials = wc.Credentials Dim res...

upload file proxy ajp isuue

I moved to new server and changed apache-tomcat connector from mod-jk2 to proxy-ajp. Since I have this problem with file(xls file to be precise) uploading. If I try file uploading through http://my.project.net**:8080**/fileupload.jsp it works just fine, but I want it to be secure and there is the problem, if I use https://my.project.net...

Detect HTTP Proxy error for WebRequest

How to detect that a WebRequest failed due to a web proxy error and not a target web server error? try { var request = (HttpWebRequest)WebRequest.Create("http://www.example.com"); request.Proxy = new WebProxy("localhost"); var response = request.GetResponse(); return response.GetResponseStream(); } catch(WebException we...

HTTP Response Question

Is it valid to return different text in the response header than the usual fare? For example if the request is invalid, could I respond with: HTTP/1.1 400 Here be Dragons And have that header properly handled by proxies, etc? ...

Joomla site on LAMP server behind proxy cannot access HTTP resource stream

Setup: 1. Joomla 1.5 website on a LAMP server (CentOS 5.2/Apache 2.2/PHP 5.2.9/mysql 5) 2. Joomla module for currency conversion added. Module uses google finance to convert currency 3. LAMP stack resides in the intranet behind a proxy. The server environment variables for http_proxy, yum.conf proxy have been setup, and kernel successful...

WCF callback interface passing to another WCF service method on different machine

Hi, I received callback interface from machine A and stored it on machine B. I'd like to pass this callback interface (that is a proxy on machine B) to machine C. Machines A, B and C uses WCF so proper interfaces are available. The issue is when I run PassCallbackToDedicatedMachine(someCallback) method I receive exception like below...

SharePoint 2007 RSS Viewer - ProxyAuthenticationRequired

When using the RSS Viewer webpart in SharePoint 2007, we can hit internal RSS feeds without issue but if we point to an external RSS feed we get the following error. ProtocolError occured trying to complete the request. The server returned a status code of : ProxyAuthenticationRequired and the status description is : "Proxy Authenticati...

Python urllib2 HTTPS and proxy NTLM authentication

Hello, urllib2 doesn't seem to support HTTPS with proxy authentication in general, even less with NTLM authentication. Anyone knows if there is a patch somewhere for HTTPS on proxy with NTLM authentication. Regards, Laurent ...