curl-library
Re: Using ftpupload.c returns a directory listing in HTML format
From: Nils Söderman <nils_at_meditalk.com>
Date: Wed, 12 Aug 2015 21:13:00 +0200
Hello there,
I have, using Daniel's tip, used curl from command line of my RaspberryPi. It worked OK. The same URL from ./FTPupload did NOT work, error code file attached. So Daniel can very well be correct: the URL used is not the one I programmed. Any way one can see what the program sends to the network? Debug the outgoing data. My exact version of ftpupload.c is attached. Where is the problem hiding?
Nils
Received on 2015-08-12
Date: Wed, 12 Aug 2015 21:13:00 +0200
Hello there,
I have, using Daniel's tip, used curl from command line of my RaspberryPi. It worked OK. The same URL from ./FTPupload did NOT work, error code file attached. So Daniel can very well be correct: the URL used is not the one I programmed. Any way one can see what the program sends to the network? Debug the outgoing data. My exact version of ftpupload.c is attached. Where is the problem hiding?
Nils
Den 2015-08-11 kl. 19:09, skrev Daniel
Stenberg:
On Tue, 11 Aug 2015, Nils Söderman wrote:
Can the reason for the error code for address "ftp://192.168.0.151/backup/ftptest/" be that I am working within my LAN?
No. libcurl doesn't care (and doesn't know) about that. It deals with the given URL and will act on it and if that IP is within your LAN then so be it.
That URL is most probably not the problem. I find it more likely that you accidentally or otherwise send in a URL that isn't exactly that string. That's why I suggest you should just try using curl on the command line with that URL to see if that works.
So my question: how to write REMOTE_URL string when working inside a LAN?
Exactly the way you write it here. There's no problem with this URL.
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/plain attachment: errors.txt
- text/plain attachment: ftpupload.c