[SOLVED]using https to login | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

[SOLVED]using https to login

hi, i'd like to create app where should be login(using school web) i unferstand lightly http/1.0 protocol, but i don't know much about certificates and security of https, so i don't really know how to make this

15th Mar 2020, 8:42 AM
nicolas turek
nicolas turek - avatar
14 Answers
+ 3
Nicolas, If you don't mind, can you save a copy of the code in SoloLearn and share the code here. Who knows it may be useful for someone who visits this thread sometime in the future. And you can add [SOLVED] prefix into the question title just to let everyone be informed that the case had been solved 👍
15th Mar 2020, 11:27 AM
Ipang
+ 1
Https and http work almost the same. Only they use a different port on the server. Https, certificates included, is configured by the webserver admin.
15th Mar 2020, 9:38 AM
Paul
Paul - avatar
0
i want to send request to the server, server is secured, i don't know much about sending requests to secured servers
15th Mar 2020, 8:47 AM
nicolas turek
nicolas turek - avatar
0
Using the action attribute in html forms you can specify a file in the server to send request to
15th Mar 2020, 8:48 AM
Ore
Ore - avatar
0
i'm using cpp(and qt) to send request
15th Mar 2020, 8:49 AM
nicolas turek
nicolas turek - avatar
0
it's like this: post /place/at/server/ http/1.0 ...
15th Mar 2020, 8:50 AM
nicolas turek
nicolas turek - avatar
0
Oh. I had no idea
15th Mar 2020, 8:50 AM
Ore
Ore - avatar
0
ok, maybe someone else
15th Mar 2020, 8:51 AM
nicolas turek
nicolas turek - avatar
0
i think i found something... qsslclass looks like what i was looking for
15th Mar 2020, 9:32 AM
nicolas turek
nicolas turek - avatar
0
yeah... but when i ask server on https port, it ansvers that it wants some with ssl...
15th Mar 2020, 9:39 AM
nicolas turek
nicolas turek - avatar
0
ok, i'm connected using encyption, but now server says, that i'm using wrong request (at port 80 worked), any idea why? request: GET /~tureni/login/ HTTP/1.0\r\nUser-Agent: QtApp\r\n\r\n
15th Mar 2020, 9:55 AM
nicolas turek
nicolas turek - avatar
0
well solved, thank you all, server wanted http/1.1 protocol, encrypted
15th Mar 2020, 10:05 AM
nicolas turek
nicolas turek - avatar
0
ok... but i think that most people will do this with some usual method
15th Mar 2020, 11:29 AM
nicolas turek
nicolas turek - avatar
0
ok, here it is, it's Qt project, so don't compile it here ;) https://code.sololearn.com/czxqqWh6oGpH for some reason works on linux, but win10 not
15th Mar 2020, 12:50 PM
nicolas turek
nicolas turek - avatar