Gosh. I posted this earlier on Google Groups, but it didn't appear.
Perhaps there was a problem at Google. Forgive me for posting it
again. This time, I'll be more brief.
Instead of using cookies, I want to play with HTTP headers in general
because I heard you can use these to circumvent cookie
security/cleaner type apps (which I consider silly, btw). I want to
write custom headers like:
TRACK_fullname: Google Mike
I want to load a PHP page, write a custom header like that, then write
a Location header to redirect to another page, as in:
header('TRACK_f ullname: Google Mike');
header('Locatio n: test2.php');
exit;
On test2.php, I want to read this back. I cycle through the array
returned by getallheaders() , but I don't see "TRACK_fullname " in
there.
What's the catch? 3 10425
Carved in mystic runes upon the very living rock, the last words of
Google Mike of comp.lang.php make plain: I want to load a PHP page, write a custom header like that, then write a Location header to redirect to another page, as in:
header('TRACK_f ullname: Google Mike'); header('Locatio n: test2.php'); exit;
On test2.php, I want to read this back. I cycle through the array returned by getallheaders() , but I don't see "TRACK_fullname " in there.
The header() function sends response headers to the browser. The browser
sees the Location: header and generates a new request for that resource.
It has no idea what your custom header means, and has no reason to pass
it on in the request.
--
Alan Little
Phorm PHP Form Processor http://www.phorm.com/ go********@hotp op.com (Google Mike) wrote in message news:<25******* *************** ****@posting.go ogle.com>... I want to load a PHP page, write a custom header like that, then write a Location header to redirect to another page, as in:
header('TRACK_f ullname: Google Mike'); header('Locatio n: test2.php'); exit;
On test2.php, I want to read this back. I cycle through the array returned by getallheaders() , but I don't see "TRACK_fullname " in there.
What's the catch?
Unless your user has some special browser that recognises
'TRACK_fullname ', it's just going to be ignored. The browser isn't
a header messenger.
The only headers of this kind that you can send out like this and pick
up in the browser are, yes, cookies.
Of course, if what you want to do is pass something along to track in
your redirect and not worry about cookies, you can either use sessions
(for a redirect within the same site) or just set your own GET parameter
in the redirect URL, as in:
header('Locatio n: test2.php?TRACK _fullname=Googl e%20Mike');
Google Mike wrote: Gosh. I posted this earlier on Google Groups, but it didn't appear. Perhaps there was a problem at Google. Forgive me for posting it again. This time, I'll be more brief.
Instead of using cookies, I want to play with HTTP headers in general because I heard you can use these to circumvent cookie security/cleaner type apps (which I consider silly, btw). I want to write custom headers like:
TRACK_fullname: Google Mike
I want to load a PHP page, write a custom header like that, then write a Location header to redirect to another page, as in:
header('TRACK_f ullname: Google Mike'); header('Locatio n: test2.php'); exit;
On test2.php, I want to read this back. I cycle through the array returned by getallheaders() , but I don't see "TRACK_fullname " in there.
What's the catch? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Google Mike |
last post by:
Tell me if this can be done, and if I have a misconception here.
I am writing an app that will be served up in an app farm, and
therefore I need to move the session information to the client, not
using server-side session features. The way I have typically done this
in the ASP world was with cookies. Another way to handle this is with
a keyed record in a database, but the cookie strategy reduces the
number of times I need to hit a...
|
by: fabrice |
last post by:
Hello,
I've got trouble reading a text file (event viewer dump) by using the
getline() function...
After 200 - 300 lines that are read correctly, it suddenly stops
reading the rest of the file...
Thank you to all of you who can help me with this one...
|
by: ssp |
last post by:
Dear all,
I'm dealing with a very tricky problem and can't seem to find the
answer with google. the problem is: i want to store huge data
(binaries) inside a mysql databases blob - to later store those data to
a file somewhere else (from where i can connect the database).
problem comes into play, when I try to output a "progress" of the
reading of this data (kind of "xx bytes of XXX bytes already
transmitted").
|
by: _jpg_ |
last post by:
Hi,
I need to read (& store) all the custom response headers in an
HttpResponse. I am writing an HttpModule and hence do not know what
headers could have been added (but need to cache them for later use).
The only relevant methods that I can see are
AppendHeader/AddHeader(string, string) and ClearHeaders() both of
which are obviously useless to me. Is there any way of reading the
custom headers?
|
by: felixnielsen |
last post by:
The question is pretty simple, i have a file called "primes.txt" and
funny enough it contains alot of primes (one per line)
Besides that i have an empty vector:
vector<__int64> P(0);
How do i fill that with the contents of the file?
P.push_back(line 1);
P.push_back(line 2);
ect.
| |
by: vfunc |
last post by:
OK, after reading some C++ books and writing some programs that cover
the core, where do I go from there, to say be able to read some open
source code ? How do you unravel other peoples code when you are not
familiar with the calls, style etc ? Are there any tools for analysing
/ displaying a program structure ? Are there any forums that discuss
such topics, because I guess this is not really the right group.
|
by: Jm.GlezdeRueda |
last post by:
Hi all,
Im trying to read a 24bit bmp with fread, and i have some problems.. I
want to read the whole structure in one time, but i dont know why, it
only reads the first member well..
I have two questions..
1- why if i change fread(bmp1, sizeof(bmp1), 1, fin); to fread(bmp1,
sizeof(struct bmp), 1, fin); i have a Segment violation ??
|
by: CodeSeeker |
last post by:
I have an application, which uses pop3 to read the messages from the mailbox, and it has been working fine for so many year. We recently have started changing this application to use java mail IMAP 4 instead of Pop3.
Primary reason for that :- Is we want to better meet out SLA, so we have decided to go with the 2 instances of this application, and hence decided to use IMAP4 to concurrently accessing the mailboxes via IMAP4.
My issues:- Now...
|
by: biplab |
last post by:
Hi all,
I want to read the pixel values of a .bmp image(which will be input to
the code) into a matrix...plz help me out as i can not understand how
to achieve this...
thanks in advance
biplab
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |