• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
java client and ntlm proxy - Another try
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

java client and ntlm proxy - Another try


  • Subject: java client and ntlm proxy - Another try
  • From: Pierre Gilquin <email@hidden>
  • Date: Tue, 29 Mar 2011 12:45:16 +0200

Hi all,

I have try another way for passing a ntml proxy with a java client.
I use the WebProxyTunnelSocket from mindbright. The code is http://www.sethi.org/tmp/ssh/src/com/mindbright/net/WebProxyTunnelSocket.java
I have tested with the following small code :


socket = WebProxyTunnelSocket.getProxy("www.myserver.com", 80, pro.getProperty("http.proxyHost"),Integer.parseInt(pro.getProperty("http.proxyPort"))
, null,this,sun.net.www.protocol.http.HttpURLConnection.userAgent);
Writer out = new OutputStreamWriter(socket.getOutputStream(), "ASCII");
out.write("GET http://www.myserver.com/cgi-bin/WebObjects/Mara2.woa/wa/com.webobjects.eodistribution._EOHTTPInitialAction/componentURLpage=GuiServer
HTTP/1.1\r\n");
out.write("Host: www.myserver.com\r\n");
out.write("Agent: whatever\r\n");
out.write("\r\n");
out.flush();
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream(), "ASCII"));
while ((line = in.readLine()) != null) {System.out.println(line);}


and it works as I get :

HTTP/1.1 200 Apple
content-length: 612
Content-Type: x-eojavaclient-message
...


I have implemented createSocket in my class extending EOHTTPChanel with the same WebProxyTunnelSocket socket but it fails.
At some point in the connection, the content send by the socket refers to the proxy (get myproxyIP/cgi-bin/WebObjects/Mara2.woa/wa/com.webobjects.eodistribution ... ) instead of the target server in the application url.
How can I can make a clear distinction between proxy and target server in EODistribution framework ?


Thanks in advance for any idea.

Pierre

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Another dumb ERRest question
  • Next by Date: Re: Another dumb ERRest question
  • Previous by thread: Re: Scheduled Actions
  • Next by thread: ERMODEditRelationshipPage ERMODListPage question
  • Index(es):
    • Date
    • Thread