V
V
Vitaly Khomenko2016-08-31 11:12:38
Computer networks
Vitaly Khomenko, 2016-08-31 11:12:38

Determine request protocol, HTTP or HTTPS?

I ask knowledgeable people to suggest.

We have request headers:

POST /0/ServiceModel/Service.svc HTTP/1.1
Host: domain.com
Connection: Keep-Alive
User-Agent: {...}
Content-Type: text/xml; charset=utf-8
SOAPAction: "{...}"
Content-Length: 201
Cookie: AUTH={...};


How can you determine, by the headers, on which protocol the request was made? HTTPS or HTTP? Is it even possible? How is the request directed to port 80 and/or 443, depending on the protocol?

Maybe I didn't pose the question correctly. I specify...

We have:
The server on which the service is started.
The service makes requests to other remote services.
The service log stores information for debugging, namely the request and response headers, as well as the request and response body.

Required:
Determine whether the service makes requests exactly using the HTTPS protocol.

How to do it with only headers and request body? It's unrealistic, right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-08-31
@iiifx

How is the request directed to port 80 and/or 443, depending on the protocol?
80/443 are standard ports for http/https. in reality, they can hang in general on any port.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question