Info | ||||
---|---|---|---|---|
| ||||
We want to provide you with the latest help content in your language as soon as possible. This page has been translated automatically and may contain grammatical errors or inaccuracies. We want this content to be useful to you. Please let us know at the bottom of this page if this information was helpful. View the original article in Russian: GET-запрос |
Описание
ZennoPoster allows using HTTP requests when working with different websites. You can receive data with GET requests, for example, request search results by request in a search engine, download files, parse data, work with API of web services and applications. Performing actions without a browser can significantly reduce the load on computer resources.
...
How do I add an action to a project?
Via the context menu Add Action → HTTP → GET request
...
Or use smart search .
What is it used for?
Working templates without a browser
A quick way to get data from the site
Download files
Working with the service API
How to work with an action: Basic tab
...
The address of the site to which the request will be sent., You can use a variable.
The resource from which the request is sent can be set to a variable.
Request encoding.
The maximum time to wait for a response from the site in seconds. When the set time is reached, the action will be completed with an error and will exit on the red thread.
Load request content only, only headers, headers and content, as file, as file + headers.
The variable to place the request response.
Info |
---|
Site addresses can be specified through variables. |
...
How to work with an action: Advanced Tab
...
Set redirection - if the response to the request contains a redirect code (eg response 301, 302), Zennoposter using the Location header will go to the next page. The numbers indicate the maximum number of clicks: 0 - stay on the original page, 5 - the number of clicks to the final url.
Disable url encoding from the main tab in urlencode.
Example:
a) Original url - https://ru.wikipedia.org/wiki/Greetings
b) By default - https://ru.wikipedia.org/wiki/%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82%D1%81%D1%82% D0% B2% D0% B8% D0% B5Headers:
a) Use as default .
b) Current profile .
c) Load from profile - you need to select a file or variable containing the path to the profile.
d) Custom settings - allows you to independently specify each parameter of the request header.Request headers:
a) Each heading starts with a new line.
b) User Agent is always listed first.
c) You can specify static values , custom variables, or profile variables .Cookie - you can specify ready-made or variables.
CookieContainer - Starting from version 5.18.0.0 in the additional settings in the section “Headers: User settings” there is an option “Use CookieContainer” . CookieContainer allows GET / POST requests to share cookies with the browser, i.e. if they are changed as a result of the request, then in the browser they will also change and vice versa. This allows you to easily transfer part of the logic of working with the site to POST / GET requests.
Sample Custom Settings using profile variables for headers and CookieContainer.
Info |
---|
You can specify a Cookie in the request or use a CookieContainer. |
...
How to work with an action: Proxy Tab
...
Without a proxy - go to the mail using your home ip.
Current proxy of the project - if you have previously installed a proxy in the project, then the action will take place from them.
Format string - we indicate our proxies in the format (you can specify a variable):
a) With authorization -socks5: // login: password @ ip: port
orhttp: // login: password @ ip: port
b) Without authorization -socks5: // ip: port
orhttp: // ip: port
c) Without specifying the protocol (http: // will be used by default) -login: password @ ip: port
orip: port
Other - select if you need to specify detailed proxy settings. Proxy type, authorization data, address and port. Check with your service provider for information.
...
Info |
---|
If no proxy protocol is specified, then http: // will be used by default |
...
Creating Actions from Traffic Monitor Requests
A ready-made HTTP request can be created directly from the Traffic Window .
...
Hover the cursor over the required query and right-click the context menu.
Click Create action from request .
A fully populated HTTP request action appears on the project canvas.
...
Change the static value or replace it with variables - the action is completely ready to work.
Info |
---|
Function availability starts from version 7.1.5.0 ( 5.44.0.0 ) |
...
Turn off the browser
If you are not using the browser when working with requests, you must disable it in the Project Settings .
...
...
Request transfer method
For more information on how to transfer HTTP requests, see Project Settings .
...
Usage example
You need to go to the page and collect all the values for the specified conditions. Since the site gives all the values without using a browser, we turn it off.
...
Turn off the browser.
Add a GET request action.
Configuring.
We receive the response of the request into a variable.
We are looking for the necessary values
Thus, disabling the browser will significantly save computer resources. The difference in the number of threads between working with tabs and queries can be more than significant.
...