HyperNext Studio

HyperNext Studio => Networks => Topic started by: sparkythex on January 14, 2011, 04:38:31 PM

Title: ftp upload & download
Post by: sparkythex on January 14, 2011, 04:38:31 PM
Is there a way to build a control or use ftp for upload & download?
perhaps with the web server or some other way?
I would love to have ftp as part of my app.!
Title: Re: ftp upload & download
Post by: Malkom on January 18, 2011, 10:17:59 AM
Quote from: "sparkythex"
Is there a way to build a control or use ftp for upload & download?
perhaps with the web server or some other way?
I would love to have ftp as part of my app.!

Unfortunately HyperNext doesn't yet support the ftp protocol.

I guess you could use its HTTP functions to send some data to a website but you would need some handler on the website.
There must be something there for this as many web hosts now uses http via web browser to let users upload/download data.

Sorry for the ftp omission :(
Title: Re: ftp upload & download
Post by: sparkythex on January 19, 2011, 07:35:28 AM
Quote from: "Malkom"
Quote from: "sparkythex"
Is there a way to build a control or use ftp

Unfortunately HyperNext doesn't yet support the ftp protocol.

I guess you could use its HTTP functions to send some data to a website but you would need some handler on the website.
There must be something there for this as many web hosts now uses http via web browser to let users upload/download data.

Sorry for the ftp omission :(

I thought it DIDN'T parse a webpages?
Wouldn't it need to read or write something for html?
because each site does it differently.
I'm guessing this must be very hard as there is no example.
Title: Re: ftp upload & download
Post by: Malkom on January 20, 2011, 11:18:22 AM
Quote from: "sparkythex"
I thought it DIDN'T parse a webpages?
Wouldn't it need to read or write something for html?
because each site does it differently.
I'm guessing this must be very hard as there is no example.

It can download a web page to a file but it doesn't parse the resulting file - parsing requires you to write some code :(

There is a web alarm project on our Projects webpage that shows how to download the web page and check the result in it.


To send data to a website you need to send a command such as

http://www.example.com/upload.php?data=yourdata (http://www.example.com/upload.php?data=yourdata)

but the "yourdata" would need converting to safe(non binary) format and your processor on the website would convert it back to normal data before placing it in the file on the website folder.
Its not a trivial task and shows why HyperNext does need some ftp commands.