Author Topic: Add a new HTTP header  (Read 728 times)

taguti

  • Newbie
  • *
  • Posts: 2
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Add a new HTTP header
« on: June 19, 2002, 06:38:13 AM »
I'm a new user to Naoko 4.3.
I can change the content of, say, user-agent like,
"user-agent: Taguti" in "header window",but I cann't
add a new unknown headerlike "x-new-HDR: AAA".
Where and How can I do it?
Thanks in advance.


#! [email protected]
%_ = split undef, join ' ', qw(far holr _z_~
ssjhqlxnaje npoegnttprvdwem csbuuuitdtytke
); print map $_{$_}, sort keys %_; # 965
#! [email protected]
%_ = split undef, join ' ', qw(far holr _z_~
ssjhqlxnaje npoegnttprvdwem csbuuuitdtytke
); print map $_{$_}, sort keys %_; # 965

pooms

  • Jr. Member
  • **
  • Posts: 75
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Add a new HTTP header
« Reply #1 on: June 19, 2002, 07:27:54 AM »
For an outgoing header you do it like this:

[HTTP headers]
In = FALSE
Out = TRUE
Key = "x-new-HDR:"
URL = "*"
Replace = "AAA"

of course you might want to be more specific as to which URL's it
applies to.

 
 

taguti

  • Newbie
  • *
  • Posts: 2
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Add a new HTTP header
« Reply #2 on: June 19, 2002, 07:42:46 AM »
Thanks a million.

I did a little otherwise.
I did;

[HTTP headers]
In = FALSE
Out = TRUE
Key = "x-new-HDR: AAA"
URL = "*"
Match = "*"
Replace = "BBB"

Maybe this will do when a browser really sends "x-new-HDR:"

#! [email protected]
%_ = split undef, join ' ', qw(far holr _z_~
ssjhqlxnaje npoegnttprvdwem csbuuuitdtytke
); print map $_{$_}, sort keys %_; # 965
#! [email protected]
%_ = split undef, join ' ', qw(far holr _z_~
ssjhqlxnaje npoegnttprvdwem csbuuuitdtytke
); print map $_{$_}, sort keys %_; # 965