Sorry.. try force HTTP 1.0 to your (???) proxy
Alberto -----Messaggio originale----- Da: Richard Vanek [mailto:[EMAIL PROTECTED] Inviato: mercoled� 12 marzo 2003 17.14 A: [EMAIL PROTECTED] Oggetto: Re: xml-rpc /htts /proxy - problem Hello all, maybe few of you remember my message from about half year ago. I again find a need to solve this which I didn't finished before as I was busy with other things. So problem was that I can't make connection to mus xml-rpc server throught proxy using https. You can find all messages with the same subject in archive of mailing list. Thank you in advance for you help! Here is the last message from me and more after this quote: On Wed, Nov 27, 2002 at 09:27:12AM +0100, Richard Vanek wrote: > Hi, > > On Wed, Nov 27, 2002 at 09:05:15AM +0100, Rupp,Heiko wrote: > > > > Do you have access to the proxy and can somehow trace what > > is going on? > > Unfortunately not, but I can do some net sniffering. I let you know. Here > is the exception I am getting when go through proxy. > > java.io.IOException: Unable to tunnel through proxy. Proxy returns > "HTTP/1.0 400 Bad Request" > at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java) > at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java) > at UpdWebPhoto.main(UpdWebPhoto.java:67) > I did ether sniff first with simple program which request same page throught proxy using https and basic authentication and than using xml-rpc jar. In first case i observe following behaviour and correctly optained xml file indicating error as I do not submit any method. CONNECT piskoftak.sk:443 HTTP/1.1 User-Agent: Java/1.4.1_01 Host: piskoftak.sk:443 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 HTTP/1.1 200 Connection established Proxy-agent: BlueCoat-Security-Appliance After this there is some handshaking with certificate and than next request from client comes: CONNECT piskoftak.sk:443 HTTP/1.1 GET /edit/.photo-update.php HTTP/1.1 User-Agent: Java/1.4.1_01 Host: piskoftak.sk:443 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1 200 Connection established Proxy-agent: BlueCoat-Security-Appliance After this my program just dump xml file indicating error that mehtod (empty) was not found whic is correct. In a case when I am using xmlrpc to connect and request call on the same url this is what happen: first request from my program which never get reply: CONNECT piskoftak.sk:443 HTTP/1.1 Content-Length: 163 Content-Type: text/xml Authorization: Basic xxxxxxx User-Agent: Java/1.4.1_01 Host: piskoftak.sk:443 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 and than second request which is not-correct and that one get error reply whic is also reson for exception and program exit: Content-Length: 163 Content-Type: text/xml Authorization: Basic xxxxxxxxxxx[B User-Agent: Java/1.4.1_01 Host: piskoftak.sk:443 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 HTTP/1.1 400 Bad Request Cache-Control: no-cache Pragma: no-cache Content-Length: 1193 Content-Type: text/html Connection: close -- -richo-
