# Search engine files

- search engine

Any ".search" file can be opened as search engine file, each line of which has one of the following formats:
[Engine name]:[url without '%s' inside]
[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"
- when [post params] is empty, the url should have '%s' as keyword. Ex. bingUS engine w/ chatgpt

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.
- Internal scheme engine urls (such as i:, d:, c:) must have '%s', since '%s' format is more general (only type 2 is allowed, since POST makes no sense for internal schemes).

#### Local engines

c:[command line with '%s' as keyword]
d:mimetype:[command line with '%s' as keyword]:[base url for external resources]

Last Modified: 4 March 2023
i:0m to support extra headers