cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: reading a log file while open

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Apr 2016 08:17:56 +0200 (CEST)

On Fri, 22 Apr 2016, Francisco Gonzalez Velasco wrote:

> C:\>curl -o c:\q\events.txt -k -H "Authorization: Bearer My_Authorization" "
> https://stream-fxpractice.oanda.com/v1/events"
>
> I need to read the contents of the events.txt file while the cURL process is
> still active.
>
> Is this possible?

That's not curl making it hard, that's Windows for you. Any other operating
system would let you read the file while another process is writing to it...

So, you need to consider a work-around. Maybe pipe curl's output into your
programs stdin isntead? Or maybe consider using libcurl and get the data
downloaded directly within your application?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ:        https://curl.haxx.se/docs/faq.html
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-22