From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] curl things
Date: Sun, 28 Dec 2014 16:04:48 +0000 [thread overview]
Message-ID: <20141228160448.GC17072@spoons.adamthompson.me.uk> (raw)
In-Reply-To: <20141128103528.eklhad@comcast.net>
[-- Attachment #1: Type: text/plain, Size: 999 bytes --]
On Sun, Dec 28, 2014 at 10:35:28AM -0500, Karl Dahlke wrote:
> For downloading a file, I want to see that the header is
> something other than text/html, allow the user to download,
> then switch the curl callback function to write to disk, but can you switch
> the callback function in mid stream?
> I've already called curl_perform, and it's running,
> so how can I switch the callback function in mid stream?
I don't know if curl can do this, but if not,
make the callback given to curl support both operations,
perhaps by having that call another callback based on a file-level variable?
> As per this feature, I pushed a small change so
> downdir = /home/eklhad/dld
> in your config file becomes same in edbrowse, the download directory.
Cool, thanks.
> Adam, the string push is fine.
> Course the same functions are also in jseng-moz.cpp, but they haven't caused any trouble there.
Yeah, I'm wondering if we want to make that file more c++ anyway as it's got to
be in c++.
Cheers,
Adam.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2014-12-28 16:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-28 15:35 Karl Dahlke
2014-12-28 16:04 ` Adam Thompson [this message]
2015-01-03 13:19 ` Chris Brannon
2015-01-03 15:34 Karl Dahlke
2015-01-05 18:12 ` Chris Brannon
2015-01-05 20:48 ` Adam Thompson
2015-01-05 21:33 Karl Dahlke
2015-01-06 0:25 ` Chris Brannon
2015-01-06 21:17 ` Adam Thompson
2015-01-06 21:09 ` Adam Thompson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141228160448.GC17072@spoons.adamthompson.me.uk \
--to=arthompson1990@gmail.com \
--cc=Edbrowse-dev@lists.the-brannons.com \
--cc=eklhad@comcast.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).