JohnC Expert Licensed User Longtime User Aug 30, 2019 #1 I have an app that does a few FTP actions. I am using okHTTPutils2 v2.82 and B4A 9.01 Code: Copy FTP.List("/images/gallery/") The above FTP action works fine, so I know the credentials and the connection are ok. But when I try to create a new directory using a Google Pixel phone running SDK 28, it gives a "java.net.SocketException: Connection reset" error: Code: Copy FTP.SendCommand("MKD","/images/Gallery/" & NewDirName) It works in the emulator running SDK 28, and on a Nexus running SDK 24 and an S4 running SDK 21. Since the "MKD" (using ".SendCommand") is a "manually-specified" action (and not a built-in action like .Upload or .List) could this have something to do with this error?
I have an app that does a few FTP actions. I am using okHTTPutils2 v2.82 and B4A 9.01 Code: Copy FTP.List("/images/gallery/") The above FTP action works fine, so I know the credentials and the connection are ok. But when I try to create a new directory using a Google Pixel phone running SDK 28, it gives a "java.net.SocketException: Connection reset" error: Code: Copy FTP.SendCommand("MKD","/images/Gallery/" & NewDirName) It works in the emulator running SDK 28, and on a Nexus running SDK 24 and an S4 running SDK 21. Since the "MKD" (using ".SendCommand") is a "manually-specified" action (and not a built-in action like .Upload or .List) could this have something to do with this error?
MarcoRome Expert Licensed User Longtime User Aug 30, 2019 #2 Try add in Manifest: Code: Copy CreateResourceFromFile(Macro, Core.NetworkClearText) Upvote 0
DonManfred Expert Licensed User Longtime User Aug 30, 2019 #3 JohnC said: I am using okHTTPutils2 v2.82 and B4A 9.01 Click to expand... How are okhttputils and ftp related here? MarcoRome said: Try add in Manifest Click to expand... The command you suggested allows your app to use HTTP connections instead of HTTPS. I´m not sure about the error though. Maybe related to passivemode? Upvote 0
JohnC said: I am using okHTTPutils2 v2.82 and B4A 9.01 Click to expand... How are okhttputils and ftp related here? MarcoRome said: Try add in Manifest Click to expand... The command you suggested allows your app to use HTTP connections instead of HTTPS. I´m not sure about the error though. Maybe related to passivemode?
MarcoRome Expert Licensed User Longtime User Aug 30, 2019 #4 DonManfred said: How are okhttputils and ftp related here? The command you suggested allows your app to use HTTP connections instead of HTTPS. I´m not sure about the error though. Maybe related to passivemode? Click to expand... Hi dear Don. I answered this way because he also spoke of okHTTPutils2 ( thing different from FTP ). So having no reference code and thinking that somehow you use okHTTPutils2 i suggested trying that solution Upvote 0
DonManfred said: How are okhttputils and ftp related here? The command you suggested allows your app to use HTTP connections instead of HTTPS. I´m not sure about the error though. Maybe related to passivemode? Click to expand... Hi dear Don. I answered this way because he also spoke of okHTTPutils2 ( thing different from FTP ). So having no reference code and thinking that somehow you use okHTTPutils2 i suggested trying that solution
JohnC Expert Licensed User Longtime User Aug 30, 2019 #5 DonManfred said: How are okhttputils and ftp related here? Click to expand... That was a brain fart - I meant to state I was using the NET lib v1.80 Upvote 0
DonManfred said: How are okhttputils and ftp related here? Click to expand... That was a brain fart - I meant to state I was using the NET lib v1.80
JohnC Expert Licensed User Longtime User Aug 30, 2019 #6 MarcoRome said: Try add in Manifest: Code: Copy CreateResourceFromFile(Macro, Core.NetworkClearText) Click to expand... That fixed it! Thanks Marco. Strange how the SDK 28 Emulator image did not "emulate" this problem. Upvote 0
MarcoRome said: Try add in Manifest: Code: Copy CreateResourceFromFile(Macro, Core.NetworkClearText) Click to expand... That fixed it! Thanks Marco. Strange how the SDK 28 Emulator image did not "emulate" this problem.