help

2013-08-09 Thread 641363574
here I have a mission to use http protocol for transfer data between computers. the data will be transfer is binary data, not text, and I know a little about tcp, which allow me to define the format of binary data, or binary protocol. now with http, how can I do it? can anyone give me some

Re: help

2013-08-09 Thread gokhansengun
d On 9 Ağu 2013, at 12:57, 641363574 641363...@qq.com wrote: here I have a mission to use http protocol for transfer data between computers. the data will be transfer is binary data, not text, and I know a little about tcp, which allow me to define the format of binary data, or binary

Re: help

2013-08-09 Thread Fredrik Gustafsson
On Fri, Aug 09, 2013 at 05:57:41PM +0800, 641363574 wrote: here I have a mission to use http protocol for transfer data between computers. the data will be transfer is binary data, not text, and I know a little about tcp, which allow me to define the format of binary data, or binary

Re: help

2013-08-09 Thread Gokhan Sengun
here I have a mission to use http protocol for transfer data between computers. the data will be transfer is binary data, not text, and I know a little about tcp, which allow me to define the format of binary data, or binary protocol. now with http, how can I do it? can anyone give me some

multiple HTTP requests/responses when using proxy authentication

2013-08-09 Thread Václav Zeman
Hi. I am in a situation where I am using proxy authentication but I need only the last response. I suspect this is true for most people who do HTTP over proxy. Now, it is fairly hard to distinguish the response boundaries because of the possibility of chunked encoding of the response and the

Re: multiple HTTP requests/responses when using proxy authentication

2013-08-09 Thread Daniel Stenberg
On Fri, 9 Aug 2013, Václav Zeman wrote: I am in a situation where I am using proxy authentication but I need only the last response. I suspect this is true for most people who do HTTP over proxy. Now, it is fairly hard to distinguish the response boundaries because of the possibility of

Re: multiple HTTP requests/responses when using proxy authentication

2013-08-09 Thread Václav Zeman
On 9 August 2013 17:11, Daniel Stenberg wrote: On Fri, 9 Aug 2013, Václav Zeman wrote: I am in a situation where I am using proxy authentication but I need only the last response. I suspect this is true for most people who do HTTP over proxy. Now, it is fairly hard to distinguish the response

Re: Multi-handle hanging up immediately after creating FTP data socket (using GCD)

2013-08-09 Thread Bill Doyle
On Thu, Aug 8, 2013 at 5:28 PM, Daniel Stenberg dan...@haxx.se wrote: This wording makes me curious. What timer interval are you talking about? Your event dispatcher should monitor all file descriptors/sockets you've asked it to monitor and tell you when the timeout is reached. There should

Re: multiple HTTP requests/responses when using proxy authentication

2013-08-09 Thread Daniel Stenberg
On Fri, 9 Aug 2013, Václav Zeman wrote: We are using libcurl as a transport backend for gSOAP because libcurl has better proxy authentication capabilities. When I send a HTTP request through proxy with authentication, my CURLOPT_WRITEFUNCTION callback is receiving all headers, even headers

Re: Multi-handle hanging up immediately after creating FTP data socket (using GCD)

2013-08-09 Thread Daniel Stenberg
On Fri, 9 Aug 2013, Bill Doyle wrote: Alright, this might be one of the points that's causing me trouble then. So when the CURLMOPT_TIMERFUNCTION is told to set a timeout, is it always supposed to be a one-time thing? Yes. It is always one single (active) timer and it is always single-shot.

Re: Multi-handle hanging up immediately after creating FTP data socket (using GCD)

2013-08-09 Thread Bill Doyle
On Fri, Aug 9, 2013 at 5:48 PM, Daniel Stenberg dan...@haxx.se wrote: Yes. It is always one single (active) timer and it is always single-shot. If you get a new timeout callback (before or after the existing one expires), that's the new time to set for the timer. Alright, cool. This makes it a