Re: better handling of websocket protocol upgrades

2015-07-27 Thread Frank Meier
On 27/07/15 15:49, Gisle Vanem wrote: Sorry I haven't followed this thread. So I don't know really what you're trying to accomplish. Is your intention to handle all the nitty-gritty details of WebSocket (RFC6455) yourself? So in the end make this possible? curl ws://echo.websocket.org/ curl

Re: better handling of websocket protocol upgrades

2015-07-27 Thread Gisle Vanem
Frank Meier wrote: consider yet to check the correctness of the Sec-WebSocket-Accept header. But of course there will be a minimum of checks that have to be performed before libcurl switches to websocket-mode. Sorry I haven't followed this thread. So I don't know really what you're trying to

Re: TLS1.2 from TLS1.0

2015-07-27 Thread Praveen Pvs
On Mon, Jul 27, 2015 at 11:51 AM, Daniel Stenberg dan...@haxx.se wrote: On Mon, 27 Jul 2015, Praveen Pvs wrote: What version of TLS it would be using when i set SSL version to *CURL_SSLVERSION_TLSv1* Will it use only TLS1.0?? will it not auto-negotiates to highest i,e, 1.2 Yes it should,

Re: TLS1.2 from TLS1.0

2015-07-27 Thread Kamil Dudka
On Monday, July 27, 2015 22:15:44 Praveen Pvs wrote: not able to connect to the server. Here is the trace provided by server team: How can we debug this? In your earlier mail, you have mentioned Upgrade to at least 7.34.0, then ask for CURL_SSLVERSION_TLSv1_2. And make sure you have a TLS

Re: TLS1.2 from TLS1.0

2015-07-27 Thread Kamil Dudka
On Tuesday, July 28, 2015 02:22:06 Praveen Pvs wrote: On Tue, Jul 28, 2015 at 1:36 AM, Kamil Dudka kdu...@redhat.com wrote: On Monday, July 27, 2015 22:15:44 Praveen Pvs wrote: not able to connect to the server. Here is the trace provided by server team: How can we debug this? In

Re: TLS1.2 from TLS1.0

2015-07-27 Thread Praveen Pvs
On Tue, Jul 28, 2015 at 1:36 AM, Kamil Dudka kdu...@redhat.com wrote: On Monday, July 27, 2015 22:15:44 Praveen Pvs wrote: not able to connect to the server. Here is the trace provided by server team: How can we debug this? In your earlier mail, you have mentioned Upgrade to at least

Re: better handling of websocket protocol upgrades

2015-07-27 Thread Frank Meier
On 25/07/15 01:03, Daniel Stenberg wrote: If you insist on using libcurl for this, then I think that is at least a way you _can_ do it. Yes, the benefit of using curl in this case, only to establish the connection, is really small. That's why I tried to find/implement a solution were the

Re: TLS1.2 from TLS1.0

2015-07-27 Thread Aaron Meriwether
On Jul 27, 2015, at 2:52 PM, Praveen Pvs meetpraveen...@gmail.com wrote: should we use specific version of TLS library? Yes, you will indeed need a recent enough version to support TLSv1.2. If you are using a *nix system, you are probably using OpenSSL or LibreSSL as your TLS library. If this

Re: TLS1.2 from TLS1.0

2015-07-27 Thread Daniel Stenberg
On Mon, 27 Jul 2015, Praveen Pvs wrote: What version of TLS it would be using when i set SSL version to *CURL_SSLVERSION_TLSv1* Will it use only TLS1.0?? will it not auto-negotiates to highest i,e, 1.2 Yes it should, but it should even negotiate to TLS 1.2 by default even without that