Follow HTTP 302 Redirects in Send HTTP Request Action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • erykjakubik
    Junior Member
    • Mar 2026
    • 7

    #1

    Follow HTTP 302 Redirects in Send HTTP Request Action

    Hi,

    I'd like to request support for following HTTP redirects (302) in the **Send HTTP Request** action in both Workflows and BPM.


    Current behavior
    When a Send HTTP Request action receives a 302 redirect response, the process fails with the following error:


    Code:
    [2026-03-14 18:53:58] ERROR: (302) Process 69b5aec33ac761d87, element 69b5aec3414b5bd91: Workflow: Send Request action: 302 response. :: /var/www/html/custom/Espo/Modules/Advanced/Core/Workflow/Actions/SendRequest.php(174)
    Expected behavior
    The HTTP client should follow the redirect automatically (similar to curl's `-L` flag) and return the final response body.

    Use case

    I'm integrating EspoCRM with **Google Apps Script Web Apps**, which are a popular and free way to interact with Google Workspace APIs (Google Drive, Sheets, Gmail, etc.) without managing OAuth tokens manually.


    Thank you for considering this!
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9717

    #2
    Hi,

    Will be added with a config parameter set to false by default. To prevent SSRF, we will need to implement checking each redirect host. Once it's done, we can enable redirects by default.

    Comment

    Working...