Re: Converting HTTP to FTP URL

2011-08-08 Thread stephen barncard
This is true for FTP apps like Transmit , Interarchy and Cyberduck that all have separate fields in their settings for web URL and FTP address. That makes features like 'copy URL' and 'copy PATH' available as a context menu item when selecting a file in their browsers. On 8 August 2011 13:51, Chi

Re: Converting HTTP to FTP URL

2011-08-08 Thread Chipp Walters
Jacque, I believe you should have a separate http path and a separate ftp path. This is because as one adds users to their servers, they typically also add a different root folder for the user. So, for instance if I had a file located at: http://fred.com/coolstack/test.rev the ftp path for it mig

Re: Converting HTTP to FTP URL

2011-08-08 Thread J. Landman Gay
On 8/8/11 10:44 AM, Mark Wieder wrote: Jacque- Monday, August 8, 2011, 8:28:27 AM, you wrote: I don't think I need four pieces of data, only two valid paths. No one All right. I was counting username and password as two. Obviously my brain has suffered after googling all weekend, and I'

Re: Converting HTTP to FTP URL

2011-08-08 Thread Mark Wieder
Jacque- Monday, August 8, 2011, 8:28:27 AM, you wrote: > I don't think I need four pieces of data, only two valid paths. No one All right. I was counting username and password as two. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailin

Re: Converting HTTP to FTP URL

2011-08-08 Thread J. Landman Gay
On 8/8/11 12:44 AM, Mark Wieder wrote: So here's my confusion about this: just because a user has http hosting doesn't necessarily mean they have ftp hosting or that they have an ftp account set up. And if they *do* have an ftp account and already know their username and password, wouldn't they

Re: Converting HTTP to FTP URL

2011-08-08 Thread J. Landman Gay
On 8/8/11 12:32 AM, Jim Ault wrote: As admin, if you give a user a login and passwd for the subdomain, they should only have ftp access to that folder tree. Yes, I think that would work. The problem is that the typical user will own the whole thing, including subdomains, and the issue happens

Re: Converting HTTP to FTP URL

2011-08-08 Thread Jeffrey Massung
On 08/08/2011 12:55 AM, Mark Wieder wrote: Jeff- HTTP PUT is an interesting alternative, but I see two possible complications. First of all you'd have to query the Allow headers on the server to see if the PUT command is supported, and then come up with an alternate strategy if it isn't. Secondl

Re: Converting HTTP to FTP URL

2011-08-07 Thread Mark Wieder
Jeff- HTTP PUT is an interesting alternative, but I see two possible complications. First of all you'd have to query the Allow headers on the server to see if the PUT command is supported, and then come up with an alternate strategy if it isn't. Secondly, you'd have to deal with the 301 response i

Re: Converting HTTP to FTP URL

2011-08-07 Thread Jeffrey Massung
On 08/07/2011 09:49 PM, J. Landman Gay wrote: On 8/7/11 10:05 PM, Jeffrey Massung wrote: So, the only way you can begin to solve this issue is if you have direct access to the web server and know how it's routing and serving static content. I'll answer you and Mark Weider at the same time. I'

Re: Converting HTTP to FTP URL

2011-08-07 Thread Mark Wieder
Jacque- Sunday, August 7, 2011, 8:49:52 PM, you wrote: > It sounds like I may have to ask the user to provide both paths. But > that makes everything more complex because the two paths are slightly > different, the user needs to know the distinction between web-relative > paths and absolute paths

Re: Converting HTTP to FTP URL

2011-08-07 Thread Jim Ault
--- On Sun, 8/7/11, J. Landman Gay wrote: From: J. Landman Gay Subject: Re: Converting HTTP to FTP URL To: "How to use LiveCode" Date: Sunday, August 7, 2011, 8:49 PM On 8/7/11 10:05 PM, Jeffrey Massung wrote: > So, the only way you can begin to solve this issue is if yo

Re: Converting HTTP to FTP URL

2011-08-07 Thread J. Landman Gay
On 8/7/11 10:05 PM, Jeffrey Massung wrote: So, the only way you can begin to solve this issue is if you have direct access to the web server and know how it's routing and serving static content. I'll answer you and Mark Weider at the same time. I'm trying to add auto-upload to AirLaunch. It m

Re: Converting HTTP to FTP URL

2011-08-07 Thread Jeffrey Massung
On 08/07/2011 04:12 PM, J. Landman Gay wrote: I need a way to convert a web URL to a valid FTP URL. For example, convert this: http://www.domain.com/folder/file.txt to this: ftp://user:p...@domain.com/webroot/folder/file.txt Not all servers use "public_html" so I can't just hard-code tha

Re: Converting HTTP to FTP URL

2011-08-07 Thread Mark Wieder
Jacque- How "generic" a solution are you looking for? Obviously you're not looking for the trivial "file.txt" because if you could get it from http why would you need ftp... Just because a site has a web server there's no guarantee that there's also an ftp server. So I gather that you know the us

Re: Converting HTTP to FTP URL

2011-08-07 Thread J. Landman Gay
On 8/7/11 5:12 PM, J. Landman Gay wrote: I need a way to convert a web URL to a valid FTP URL. For example, convert this: http://www.domain.com/folder/file.txt to this: ftp://user:p...@domain.com/webroot/folder/file.txt Not all servers use "public_html" so I can't just hard-code that as the w

Converting HTTP to FTP URL

2011-08-07 Thread J. Landman Gay
I need a way to convert a web URL to a valid FTP URL. For example, convert this: http://www.domain.com/folder/file.txt to this: ftp://user:p...@domain.com/webroot/folder/file.txt Not all servers use "public_html" so I can't just hard-code that as the web root. Is there a generic way to i