FTP Upload Issues.

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

AxWald
Posts: 578
Joined: Thu Mar 06, 2014 2:57 pm

Re: FTP Upload Issues.

Post by AxWald » Thu Jul 08, 2021 11:03 am

Hi,

"aFile.txt" is used as new name when I try to transfer something to the server (a file to be created there, including "myData").

"testFile.txt" is an existing file on the server, used to request it with a browser, to test if the URL (incl. Username/ Password) works.


It seems Apache interprets the POST as GET, because:

Code: Select all

post myData to URL ("http://bUser:bPassWord@domain.com/Test/")
(w/o a fileName) returns the content of "/test/index.htm" ...


Adjusting the HTTP headers before doesn't help:

Code: Select all

   set the HTTPHeaders to "Content-Type: text/plain"
   --  or: set the HTTPHeaders to "Content-Type: text/plain; charset=UTF-8"
still results in 404.

Have fun!
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: FTP Upload Issues.

Post by FourthWorld » Thu Jul 08, 2021 4:34 pm

You'll need something on the server to accept the POST.

https://lessons.livecode.com/m/4070/l/4 ... ode-server
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Android Deployment”