HTTP Requests: Difference between revisions

From Planfix
Jump to: navigation, search
No edit summary
m (Aliona moved page Sending POST requests using scripts to HTTP Requests without leaving a redirect)
 
(13 intermediate revisions by one other user not shown)
Line 1: Line 1:
Planfix allows you to send POST requests using [[scripts]].
{{#seo:
|title=HTTP Requests in Planfix
|titlemode=append
|keywords=planfix, post-requests, POST-requests, scripts, incoming webhooks, HTTP-requests, http, requests, POST, GET, PUT, DELETE, Sending POST requests using scripts
|description=HTTP Requests in Planfix
}}
Planfix allows you to send HTTP requests using via [[scripts]] and [[Incoming webhooks|webhooks]] and supports the following methods:
*GET


*POST


POST is one of many request methods supported by HTTP protocol used on the web. The POST request method is intended for requests where a web server is receiving data for storage in the body of a message. It's often used to upload files or submit completed online forms.
*PUT


*DELETE
==Examples of HTTP Requests and Response Parsing==
*[[GET-request: obtaining exchange rates]]


Examples of POST requests that use [[Variables in task templates | variables]]:
https://pic.planfix.ru/pf/N1/GdsiKR.png
https://pic.planfix.ru/pf/IH/oEC0xh.png
==Important==
==Important==
*POST requests are sent from your account in single-thread mode. A new POST request is not sent until a response has been received for the previous request. Because of this, if there is a significant delay in the remote server's response, there may be a significant delay in sending future requests.
*POST requests are sent from your account in single-thread mode. A new POST request is not sent until a response has been received for the previous request. Because of this, if there is a significant delay in the remote server's response, there may be a significant delay in sending future requests.
Line 23: Line 25:
*Incidents of unsuccessful sending are recorded in the [[Incidents panel]].
*Incidents of unsuccessful sending are recorded in the [[Incidents panel]].


*You can deactivate the automatic retries in the settings for POST requests:
https://s.pfx.so/pf/rI/icRyBq.jpg
*All HTTP request processing details are logged in the task's technical log:
https://s.pfx.so/pf/xl/3FZLcv.jpg
== Using variables in HTTP requests ==
By default, all variables inserted in the URL are URL-encoded to ensure that they are correctly transmitted as query parameters. For example:
<div style="display: block; padding: 1em; margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: black; word-wrap: break-word; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 4px;"><nowiki>https://</nowiki>mysite.com/?param1='''<nowiki>{{Variable_1}}</nowiki>'''&param2='''<nowiki>{{Variable_2}}</nowiki>'''</div>
If your variable already contains encrypted parameters or is part of the URL and should not be encrypted, wrap it with %%%:
<div style="display: block; padding: 1em; margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: black; word-wrap: break-word; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 4px;">'''%%%'''<nowiki>{{Infoblock.RequestURL}}</nowiki>'''%%%'''
<nowiki>https://</nowiki>my.site.com/'''%%%'''<nowiki>{{Infoblock.Parameters}}</nowiki>'''%%%'''
</div>


== Go To==
== Go To==

Latest revision as of 10:09, 26 June 2025

Planfix allows you to send HTTP requests using via scripts and webhooks and supports the following methods:

  • GET
  • POST
  • PUT
  • DELETE

Examples of HTTP Requests and Response Parsing

Important

  • POST requests are sent from your account in single-thread mode. A new POST request is not sent until a response has been received for the previous request. Because of this, if there is a significant delay in the remote server's response, there may be a significant delay in sending future requests.
  • If a successful response is not received from the remote server (response status not equal to 200) Planfix will attempt to send the request again several times, after certain time intervals. Five additional attempts are made: after 5 / +15 / +30 / +60 minutes. This is done to prevent message loss in the event that the remote server is temporarily unavailable or inoperable.
  • In addition, no other POST requests will be sent from your account for three minutes after receiving an unsuccessful response or no response from the server. This is a necessary measure taken to ensure that Planfix continues to work stably when a large number of requests are made from an account and the server they are sent to stops responding.
  • You can deactivate the automatic retries in the settings for POST requests:

icRyBq.jpg

  • All HTTP request processing details are logged in the task's technical log:

3FZLcv.jpg

Using variables in HTTP requests

By default, all variables inserted in the URL are URL-encoded to ensure that they are correctly transmitted as query parameters. For example:

https://mysite.com/?param1={{Variable_1}}&param2={{Variable_2}}

If your variable already contains encrypted parameters or is part of the URL and should not be encrypted, wrap it with %%%:

%%%{{Infoblock.RequestURL}}%%%

https://my.site.com/%%%{{Infoblock.Parameters}}%%%

Go To