K
K
Kostyan Kondr2016-06-30 16:33:05
API
Kostyan Kondr, 2016-06-30 16:33:05

How to generate a valid http request in qt?

Wherever I send a request through QT, the first line of the request gets host, which is then duplicated below as a header. It always seemed to me that this should not be and the host is prescribed separately. Is it legal at all? Will this always work correctly? How to fix it?e3f6c5f8559049149aa6740b1841bd02.JPG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fat Lorrie, 2016-06-30
@kondr1

RFCs :
Translated into Russian: yes, the absolute path (with the host) in the Request-URI is allowed. And the Host header is required anyway.

R
Rou1997, 2016-06-30
@Rou1997

Everything is good.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question