Spinneret as FTP-client
Moskog
Posts: 554
I been using WS_FTP on my computer as a client for transferring html-files from my computer to a remote server for years. Now I want the Spinneret to do this instead of using the computer. I been searching this forums for ideas on how to do this, but only what I find is examples on uploading to the Spinneret web server, not from it.
I need the Spinneret to upload an updated web page (or several) to a server hosted by my internet provider to keep all requests to this page(s) away from my Spinneret.
The main reason I need to do this is because my internet provider keeps changing my IP-address once a power out or I reset the ADSL-modem.
The physical setup of the Spinneret to the network should be OK, I do have a PINK running and I guess things there should be very similar. The main problem is how to connect the server and then transfer files. If anyone can point me into the right direction here that would be great.
I need the Spinneret to upload an updated web page (or several) to a server hosted by my internet provider to keep all requests to this page(s) away from my Spinneret.
The main reason I need to do this is because my internet provider keeps changing my IP-address once a power out or I reset the ADSL-modem.
The physical setup of the Spinneret to the network should be OK, I do have a PINK running and I guess things there should be very similar. The main problem is how to connect the server and then transfer files. If anyone can point me into the right direction here that would be great.
Comments
* Open a connection to the FTP service on port 21.
* Send your credentials
* Send the file transfer mode (ascii or binary)
* Send the change directory command (cd /folder) on the ftp target
* Change directory on the SD card - source
* Open local file
* Start file transfer (PUT)
* Send next file
* bye
There are many how-to ftp guides on the Internet.
http://www.davelozinski.com/tutorials/ftp/index.php?1310324546924