Page 2 of 2

Re: FTP Upload Issues.

Posted: Thu Jul 08, 2021 11:03 am
by AxWald
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!

Re: FTP Upload Issues.

Posted: Thu Jul 08, 2021 4:34 pm
by FourthWorld
You'll need something on the server to accept the POST.

https://lessons.livecode.com/m/4070/l/4 ... ode-server