Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
search_engine_ranker:macro_guide [2020-11-05 09:05] – [%random_url%] sven | search_engine_ranker:macro_guide [2022-12-21 08:29] – [%http-header-<header_name>% or just %http-header%] sven | ||
---|---|---|---|
Line 132: | Line 132: | ||
Output: Die Minute, die wir geboren werden, beginnen wir zu sterben. | Output: Die Minute, die wir geboren werden, beginnen wir zu sterben. | ||
- | The example above is translating the sentence “The minute that we are born we begin to die.” into “Die Minute, die wir geboren werden, beginnen wir zu sterben.” while we submit to a German site like http://www.something-german.de/ | + | The example above is translating the sentence “The minute that we are born we begin to die.” into “Die Minute, die wir geboren werden, beginnen wir zu sterben.” while we submit to a German site like http://www.rostock-schwarz.de/ |
Another format could be used where you specify the langauge to translate in the macro itself using: | Another format could be used where you specify the langauge to translate in the macro itself using: | ||
Line 495: | Line 495: | ||
Example: My Website is %url% and %random_url% as well as %random_url% | Example: My Website is %url% and %random_url% as well as %random_url% | ||
- | Output: My Website is %%http://url1.com%% and %%http://url1911.com%% as well as %%http://url23.com%% | + | Output: My Website is https://www.gsa-online.de/ |
If you would have used %url% only, you would have three of the same URLs in the output. | If you would have used %url% only, you would have three of the same URLs in the output. | ||
Line 567: | Line 567: | ||
This will get you the cookie value of the cookie_name. If you leave that URL out, you get the data from the current URL. The path is ignored from the URL. | This will get you the cookie value of the cookie_name. If you leave that URL out, you get the data from the current URL. The path is ignored from the URL. | ||
+ | |||
+ | ===== %http-header-< | ||
+ | |||
+ | This will get return the full http header (including GET/Post reply code) or just a specific one if defined along with the macro. | ||
+ | < | ||
+ | [last_used_user_agent] | ||
+ | type=extract | ||
+ | input=%http-header-user-agent% | ||
+ | </ | ||
+ | < | ||
+ | [last_reply_code] | ||
+ | type=extract | ||
+ | input=%http-header% | ||
+ | front1=HTTP/ | ||
+ | back=" " | ||
+ | </ | ||
===== %datetime-< | ===== %datetime-< | ||