|
Post by Guest on Aug 15, 2019 10:34:59 GMT
Hi ,
I am trying to get zip file from online server in to Ipad, It is giving me error. sadly there are no logs on app as well as online server. It is working well on Android and also working with old version of rhodes. Kindly suggest.
I am using Rhodes 6.1.16 and Xcode 8.3.3.
result = Rho::AsyncHttp.download_file( :url => download_url, :filename => filename, :headers => {"filename"=> filename.to_s}, :ssl_verify_peer => false, :createFolders => true )
|
|
|
Post by Dmitry Soldatenkov on Aug 18, 2019 23:59:25 GMT
|
|
|
Post by Guest on Aug 19, 2019 8:18:14 GMT
Its HTTPS
|
|
|
Post by Dmitry Soldatenkov on Aug 19, 2019 16:58:30 GMT
Can you place any zip file (without confidentional info) to your server and give me URL for some tests ?
|
|
|
Post by Guest on Aug 27, 2019 10:36:47 GMT
Hi Dmitry,
Below is response from server. Normal HTML or TXT file is okay to download but in my code we have zipped text file with json in it and we are writing it in servletOutputStream and sending it to device.
{"body"=>"", "http_error"=>"200", "status"=>"ok", "headers"=>{"Content-Type"=>"multipart/x-mixed-replace;boundary=END;", "Date"=>"Tue, 27 Aug 2019 10:24:30 GMT", "FILESIZE"=>"11753", "Server"=>"Apache-Coyote/1.1", "Transfer-Encoding"=>"Identity"}}
Regards,
|
|
|
Post by Dmitry Soldatenkov on Aug 29, 2019 20:38:59 GMT
I should test it. Can you place any zip file (without confidentional info) to your server and give me URL for some tests ?
|
|
|
Post by Guest on Sept 17, 2019 11:40:26 GMT
Hi Dmitry,
I have update on this. When I try with "ios_net_curl" as "0" it doesn't work and with "ios_net_curl" as "1" it work only for HTTP connection. For HTTPS, it gives unsupported protocol error.
What are recommended settings for this ? how to solve unsupported protocol error ?
Thanks
|
|
|
Post by Guest on Sept 24, 2019 3:54:21 GMT
Hi Dmitry,
Here is update , It was content-type issue in online servers header part. content-type in header was "multipart/x-mixed-replace;boundary=END", I have replaced it with "application/zip" and it started working. In earlier Rhodes (open source) version it was working but for latest one content-type need to be changed.
Thanks
|
|