Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 is currently offline  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

Previous Topic: How to update main thread UI when runing other thread
Next Topic: HttpRequest cannot get the server [SOLVED]
Goto Forum:
  


Current Time: Fri Apr 19 22:40:49 CEST 2024

Total time taken to generate the page: 0.03725 seconds