cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Trouble Retrieving Header Data from SFTP Connection

From: Christopher Gamio <cgamio_at_xceedium.com>
Date: Mon, 3 Jan 2011 13:40:55 -0500

On Dec 31, 2010, at 6:23 PM, Daniel Stenberg wrote:

> 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<sftp-pwd.patch>-------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

Hey,

I tried that patch, and it works exactly as expected now. I'm able to get to the PWD response using the header callback function. Is there any apply this (or something like it) to upstream?

Thanks again for all your help,
Christopher Gamio
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-03