cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Trouble Retrieving Header Data from SFTP Connection

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 1 Jan 2011 00:23:51 +0100 (CET)

On Wed, 29 Dec 2010, Daniel Stenberg wrote:

> I read up on the current code for 'pwd' (lib/ssh.c:1046 to 1056) and it
> quite clearly does not send the current path to the header callback. It is
> just sent to the debug output function, which allows you to trap it if you
> use CURLOPT_DEBUGFUNCTION but that really isn't what I thought or what I
> think is correct.

Hi again,

How about something similar to the attached patch? It should send a faked
header to the header callback in a style and syntax that mimics the FTP way. I
didn't actually try it myself yet...

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2011-01-01