Andrew M. Bishop <[EMAIL PROTECTED]> [03-02-2002 15:14]:
> Radoslaw Zielinski <[EMAIL PROTECTED]> writes:
>> How do I add a header to every outgoing request?  I need it for the
[...]
> There is no feature in WWWOFFLE that will add a header to all
> requests.  It is an item that I have on my TODO list though.

> If you wanted to make a quick change yourself you just need to add the
[...]

Thanks.  I did it this way:


diff -ur wwwoffle-2.6d.old/parse.c wwwoffle-2.6d/parse.c
--- wwwoffle-2.6d.old/parse.c   Tue Jun 12 20:57:08 2001
+++ wwwoffle-2.6d/parse.c       Sun Feb  3 17:16:36 2002
@@ -484,6 +484,10 @@

  AddToHeader(request_head,"Host",Url->host);

+ /* Add an Accept-Language header */
+ if (! GetHeader(request_head, "Accept-Language", NULL))
+    AddToHeader(request_head, "Accept-Language", "pl,en"); // TODO: configurable value
+
  /* Add a Connection / Proxy-Connection header */

  RemoveFromHeader(request_head,"Connection",NULL);


-- 
Radosław Zieliński <[EMAIL PROTECTED]>
[ GPG key: http://radek.karnet.pl/ ]

Attachment: msg00743/pgp00000.pgp
Description: PGP signature

Reply via email to