I am using Objective C in GNUStep 1.24 with clang 3.4 on Windows 7
From behind our corporate (authenticated) proxy, I'm trying to make a simple NSURLConnection (NSURL->NSURLRequest->NSURLConnection) over HTTP.
However this only results in "Host not found using 'gethostbyname()'". Clearly I need to specify the HTTP proxy information.
What I have tried:
- My understanding (according to cocoa spec) is that NSURLConnection should use the system proxy settings, so I am assuming that it is not set. However, I have not been able to find GNUStep documentation on how to set this.
- SystemConfiguration API does not seem to be available with GNUStep, so I could not investigate this programmatically.
- By setting the relevant proxy configuration in the GNUStep shell, I can use e.g. wget without issue. I also tried setting this in the windows environment variable just in case.
- I know that by implementing a NSURLProtocol I could implement my own proxy, but this seems a bit advanced for my needs (and skill).
- I know of the availability of other networking libraries, such as AFNetworking, which I have not investigated yet as I would like to address the basic problem.
Does anyone know how to set the system HTTP proxy for GNUStep such that I will be used by NSURLConnection? Otherwise, if I have misunderstood the situation, what should I be doing in this situation?
Further: Ultimately I will need to make these requests over HTTPS using both host and client certificates.