Page 1 of 1

urlcp header

Posted: Thu Jul 16, 2009 11:17 am
by gaurav.shetti
can you explain what url cp does with an example. thanks

urlcp header

Posted: Thu Jul 16, 2009 11:17 am
by gaurav.shetti
<urlcp header> actually

urlcp header

Posted: Thu Jul 16, 2009 11:28 am
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".

urlcp header

Posted: Fri Jul 17, 2009 9:20 am
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

urlcp header

Posted: Fri Jul 17, 2009 9:47 am
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?

urlcp header

Posted: Fri Jul 17, 2009 10:39 am
by gaurav.shetti
the headers returned with the Vortex page when delivered to the client

urlcp header

Posted: Fri Jul 17, 2009 1:35 pm
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.

urlcp header

Posted: Fri Jul 17, 2009 1:36 pm
by mark
Another option would be to use a packet sniffer like wireshark to watch the communication between the server and client.

urlcp header

Posted: Sat Jul 18, 2009 12:27 am
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.

urlcp header

Posted: Mon Jul 20, 2009 10:19 am
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_