From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 0463A7884B for ; Sun, 28 Dec 2014 08:07:07 -0800 (PST) Received: by mail-wi0-f180.google.com with SMTP id n3so20270245wiv.1 for ; Sun, 28 Dec 2014 08:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Z4ewY/zUcX6Ei1uiBzuTFKTgPaTgK+SBBki0RA+C2zU=; b=Whzej8+E47jISqBEkAeqFmbbQTJz9YRw45NFBzwRiE9CEFHa99JqVyof3uUIer4HzV +d795YB9i35dv8aS/AAAT/HsmO+LOhLhQgsu7kJ0ZR2UAEL2U4jklGkHMe3fP/l4ovEs R5GpGt8+YIlIFOMU6+fDF+ksn4740l4kNCeosyMqemzhAQN3RxOI0YaK+nlcPThCFJNl SYVkGkqHOPVpC0NnbgYl8fUtz+ooC+M62hGsoiGvzkk8zSb0FAstorlYL55MpcUwxTDc quqPWfjPorfN7IRIYEeKwdaQT6VDVCJ/gPiGFG04NInBmVUi6v4PGbpBF6Vz84QKPKu/ rz2A== X-Received: by 10.194.184.171 with SMTP id ev11mr99108080wjc.119.1419782692233; Sun, 28 Dec 2014 08:04:52 -0800 (PST) Received: from spoons.adamthompson.me.uk (8.3.3.3.0.d.e.f.f.f.2.d.4.2.2.0.5.9.a.d.8.a.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fba8:da95:224:d2ff:fed0:3338]) by mx.google.com with ESMTPSA id ry19sm46512049wjb.3.2014.12.28.08.04.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Dec 2014 08:04:51 -0800 (PST) Date: Sun, 28 Dec 2014 16:04:48 +0000 From: Adam Thompson To: Karl Dahlke Message-ID: <20141228160448.GC17072@spoons.adamthompson.me.uk> References: <20141128103528.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="69pVuxX8awAiJ7fD" Content-Disposition: inline In-Reply-To: <20141128103528.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] curl things X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2014 16:07:07 -0000 --69pVuxX8awAiJ7fD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --69pVuxX8awAiJ7fD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUoCogAAoJELZ22lNQBzHOptwIAJ0hgCX6WQ5OnsdgVwHzgDbq O1dt3wLSt7E7L+KQGcw7B8cYn4BboWXfl342q/+UZLL+oUmltxaUl4851XgysW+X SiOrDThaMEOY3k4X3+5Ikjrkz2+5sw41J0etuRoeBS9NRq2fq0R8Mc98//MNDaRN sbS5OJDi6kuk75itgdRlI0RYIVRs7FuN/HA0Ofk6IYNhy3K8S2UCKLS5VSlIAYCk tbxjcf51820oejrFn9CiNHbf6ur8ZsB0x+00Ko5qSgnNYpWqwmBg3eaXXia/0KZx DG7h0TCCSOev6iGuNuzkADgpm0ePiErY6WtW4I+3Efl2SDNLTy9MqB9Uz+FBekk= =32HA -----END PGP SIGNATURE----- --69pVuxX8awAiJ7fD--