From 457e012713c804b58ef8c08b428663063e9e99a9 Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Sat, 4 Mar 2023 09:43:13 +0800 Subject: [PATCH] enhance user defined extra http request headers --- en/_posts/index.xml | 3 +-- en/index.xml | 3 +-- en/searchcat/index.html | 1 + en/tags/search-engine/index.xml | 3 +-- index.html | 11 +---------- zh/index.xml | 6 +++--- zh/search/index.html | 3 ++- zh/topposts/index.xml | 6 +++--- 8 files changed, 13 insertions(+), 23 deletions(-) diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 56a1e4e..c876563 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -242,8 +242,7 @@ If a new button is defined (file name "20" exists), uweb also [Engine name]:[url with '%s' as keyword] [Engine name]:POST:[post params with '%s' as keyword]:[url] [Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url] -[Extra request headers] Ex. "X-Forwarded-For;8.8.8.8" Limitations (they are here for performance reasons): -The first engine in the file must be the first type that has no '%s' in the engine url. +[Extra request headers] Ex. "X-Forwarded-For;8.8.8.8" when [post params] is empty, the url should have '%s' as keyword. Ex. bingUS engine w/ chatgpt Limitations (they are here for performance reasons): diff --git a/en/index.xml b/en/index.xml index 9cc662a..9f4ac86 100644 --- a/en/index.xml +++ b/en/index.xml @@ -375,8 +375,7 @@ If a new button is defined (file name "20" exists), uweb also [Engine name]:[url with '%s' as keyword] [Engine name]:POST:[post params with '%s' as keyword]:[url] [Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url] -[Extra request headers] Ex. "X-Forwarded-For;8.8.8.8" Limitations (they are here for performance reasons): -The first engine in the file must be the first type that has no '%s' in the engine url. +[Extra request headers] Ex. "X-Forwarded-For;8.8.8.8" when [post params] is empty, the url should have '%s' as keyword. Ex. bingUS engine w/ chatgpt Limitations (they are here for performance reasons): diff --git a/en/searchcat/index.html b/en/searchcat/index.html index c3a2bbb..486d9bb 100644 --- a/en/searchcat/index.html +++ b/en/searchcat/index.html @@ -56,6 +56,7 @@ [Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]

Limitations (they are here for performance reasons):