Home » U++ Library support » U++ MT-multithreading and servers » File upload to https [SOLVED]
File upload to https [SOLVED] [message #53088] |
Mon, 24 February 2020 20:06 |
|
forlano
Messages: 1185 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
I had a working script
https://www.ultimatepp.org/forums/index.php?t=msg&th=108 01&start=0& (see below)
void fileupload::Upload()
{
String url = "http://localhost/uploads/transfer.php";
HttpRequest r(url);
String fn = "C:/upp/out/MyApps/MSBT17.Gui/test.pdf";
String s = LoadFile(fn);
r.POST();
r.Part("file", s , "multipart/form-data", fn);
r.Execute();
}
able to perform a file upload.
Now the same script must work on a new server that manage the https protocol. Unfortunately it no longer works (perhaps some bad server setting).
I wonder if the previous script could have problem in case the server accept HTTPS.
Thanks,
Luigi
EDIT: the problem was solved by Oblivion in another related post.
I missed to add Core/SSL package to the app, and #include <Core/SSL/SSL.h> in the source code.
[Updated on: Tue, 25 February 2020 09:07] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Apr 24 11:04:04 CEST 2024
Total time taken to generate the page: 0.03971 seconds
|