urlcp header

Post Reply
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

urlcp header

Post by gaurav.shetti »

can you explain what url cp does with an example. thanks
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

urlcp header

Post by gaurav.shetti »

<urlcp header> actually
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

urlcp header

Post by mark »

It adds any arbitrary header you specify to all subsequent <fetch>s and <submit>s.

<urlcp header "Flooby" "Dust">

Will add the header "Flooby" with value "Dust".
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

urlcp header

Post by gaurav.shetti »

okay. Is there any way i can get the all the headers assosiated with a page.
Say i am loading a vortex page abc.
When it loads
How can i print out all the headers assosiated with the page.
I want those headers to be shown as o/p
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

urlcp header

Post by John »

Can you clarify which set of headers you are looking for?

The headers the client sent when requesting the Vortex page, or the headers returned with the Vortex page when delivered to the client?

Or is it during a Vortex <fetch> the headers sent with the request, or the headers returned with the response?
John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

urlcp header

Post by gaurav.shetti »

the headers returned with the Vortex page when delivered to the client
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

urlcp header

Post by mark »

Some of the headers come from the webserver. The best way to see all headers is to use a web client that can show them. Firefox with the "tamper data" addon is what I use for that most often.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

urlcp header

Post by mark »

Another option would be to use a packet sniffer like wireshark to watch the communication between the server and client.
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

urlcp header

Post by gaurav.shetti »

yes . But is there a way we can come to know abt it from code. That is can that vortex page get the information about the headers receieved.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

urlcp header

Post by John »

<urlinfo headers> and then <urlinfo header> will let you get the headers received after you do a <fetch> in Vortex.

To get the headers the Vortex page received from the client you can do <varinfo list env> and look for the variables that begin HTTP_
John Turnbull
Thunderstone Software
Post Reply