Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone!

In http request/response messages, client request to a server as below

http request [
GET /js/standaloneMozLoop.js HTTP/1.1
Host: hello.firefox.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://hello.firefox.com/dJ_9SWkcHjE
Cookie: _ga=GA1.2.1623609526.1426832126; _gat=1
Connection: keep-alive]

and server response back to the client with http response message as below

http response [
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Security-Policy: frame-ancestors 'self'
Content-Type: text/css
Date: Fri, 20 Mar 2015 07:52:14 GMT
Last-Modified: Tue, 10 Mar 2015 18:57:07 GMT
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
Content-Length: 716
Connection: keep-alive
].

My doubt is whether the server replies response to the referer link or host link

Referer: https://hello.firefox.com/dJ_9SWkcHjE

or

Host: hello.firefox.com
Posted

1 solution

How, how a server could possibly send anything to the referrer link? That link is not a client. And a client is not a "link". HTTP is based on TCP: a client connects to the server listening for connection, and then they start to send/receive data, moreover, the protocol is built on client-server technology: a client sends HTTP request, a server sends HTTP response (there can be server push, but this is advanced technology). There is no such thing as "send to a link" at all: a link is URL, not a TCP endpoint.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900