473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Is it possible to get the next hyperlink location in "EACH HTTP REQUEST HEADER?"

regards:

Is it possible to get the next hyperlink location in "EACH HTTP REQUEST HEADER?"
Or,

---------------------------------------------------------------------------
Does the following programming architecture make sense?
http://www.wretch.cc/album/show.php?...1114017894&p=4
---------------------------------------------------------------------------

Any positive suggestion is welcome.
thank you
May goodness be with you all
Jul 24 '05 #1
4 1760
mike wrote:
Is it possible to get the next hyperlink location in "EACH HTTP REQUEST
HEADER?"


HTTP request headers do not include hyperlinks, they include a URL (or
rather a host header[1] and a path (with optional query)) that is being
requested. Obviously it is possible for the server to get that URL,
otherwise it wouldn't know what data to return.

I think, perhaps, you should rephrase your question.

[1] only in HTTP 1.1, but earlier versions of HTTP are very rarely seen
these days.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 24 '05 #2
On Sun, 24 Apr 2005, David Dorward wrote:
HTTP request headers do not include hyperlinks, they include a URL (or
rather a host header[1] and a path (with optional query)) that is being
requested. [...] [1] only in HTTP 1.1, but earlier versions of HTTP are very rarely seen
these days.


That's very misleading: an HTTP/1.0 request with a Host: header is
perfectly fine, even now. One without would be technically legal, but
isn't going to be much use on today's web, where so much use is made
of name-based virtual hosts.

I didn't understand the original question either, by the way.
Jul 24 '05 #3
Alan J. Flavell wrote:
That's very misleading: an HTTP/1.0 request with a Host: header is
perfectly fine, even now.


Really? I was under the impression that Host was added in 1.1. That's my
"something new" learned for the day then.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 24 '05 #4
David Dorward wrote:
Alan J. Flavell wrote:
That's very misleading: an HTTP/1.0 request with a Host: header is
perfectly fine, even now.


Really? I was under the impression that Host was added in 1.1.


That's my impession too. But 1.0's not defining a Host header doesn't
stop you from sending one in a 1.0 message. Just as with 1.1, the 1.0
spec allows you to send headers which it hasn't defined.

See RFC2616 sec. 19.6.1.1

http://www.ietf.org/rfc/rfc2616.txt

--
Jock

Jul 24 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stijn Goris | last post by:
Hi all, I have a question regarding the header function. I send a browser to a certain page (eg first.php ) wich sends no output to the browser. This page sends the browser to another page (eg...
2
by: Sven | last post by:
I try to call a Location header from an included class. It didn't work. If I didn't include but write the code of the class in the page everything is fine. So I thought it is an include problem...
10
by: Hywel | last post by:
this script don't work Script A: set session variable <?php class Page0A { function Page0A(){ $this->init(); $this->save();
0
by: Ian Staines | last post by:
In asp the following code: Request.Servervarables("AUTH_USER") will return the header variable AUTH_USER In .NET the code Request.Servervariables("AUTH_USER") returns the server variable...
31
by: Yeah | last post by:
Is it absolutely necessary to include "http://" in an A HREF hyperlink? Would it be wise to remove this from one's Links page, just to save code?
5
by: Duderino82 | last post by:
I'm working on a very simple peace of php where basically there is a form and 3 buttoms. One refreshed the page, one posts the form, and another one (since this form contains values of a record)...
3
by: thomasg | last post by:
Hi, I am moving some scripts from a UNIX box to a Windows box. A data entry form calls a PHP script the updates the records from the form. After the script completes, The script redirects to...
1
by: eggie5 | last post by:
How can I get the value of the Location header after my ajax call?
4
by: Big Moxy | last post by:
I've successfully tested sending the variable "msg" back to login.php. However further down I am sending the variable "id" to menu.php but it is not being sent. It does not appear in the URL in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.