+ 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
14 odpowiedzi
+ 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 👍
+ 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.
0
i want to send request to the server, server is secured, i don't know much about sending requests to secured servers
0
Using the action attribute in html forms you can specify a file in the server to send request to
0
i'm using cpp(and qt) to send request
0
it's like this:
post /place/at/server/ http/1.0
...
0
Oh. I had no idea
0
ok, maybe someone else
0
i think i found something... qsslclass looks like what i was looking for
0
yeah... but when i ask server on https port, it ansvers that it wants some with ssl...
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
0
well solved, thank you all, server wanted http/1.1 protocol, encrypted
0
ok... but i think that most people will do this with some usual method
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