Skip to content

HTTP Manager: TLS + postForm + timeout + clearcookie + redirectstrategy#593

Merged
Mark-J-Lawrence merged 3 commits into
galasa-dev:mainfrom
Mark-J-Lawrence:httpFixed
May 15, 2026
Merged

HTTP Manager: TLS + postForm + timeout + clearcookie + redirectstrategy#593
Mark-J-Lawrence merged 3 commits into
galasa-dev:mainfrom
Mark-J-Lawrence:httpFixed

Conversation

@Mark-J-Lawrence
Copy link
Copy Markdown
Contributor

Why?

This PR delivers a number of changes which have been required whilst migrating our tests over from using the v4 HTTP client, and our own internal v5 HTTP client, over to the new public httpclient5 HTTP manager delivered in 0.47.0.

The changes are:

  1. New text content types available to support return types by springboot 4 applications
  2. The ability to set the connection request + response timeout manually via annotation metadata
  3. The ability to set the socket and connection timeout via helper functions
  4. A new postForm() handler which makes working with encoded forms a lot easier (simply provide a url and a key-value map for the form)
  5. Latest TLS versions supported for the connection
  6. A helper to clear cookies, which can be handy when testing authentication scenarios.
  7. Better redirect support. Firstly, to enable it, secondly, a redirect strategy to handle when a redirect after authentication may go back to /, however, the trailing / is lost and it simply goes back to the baseUrl, causing failures.

Changes

  • Unit tests (if applicable)
  • Documentation updates (if applicable)
  • Release notes updates (if applicable)

@Mark-J-Lawrence Mark-J-Lawrence requested a review from eamansour May 13, 2026 21:29
@Mark-J-Lawrence Mark-J-Lawrence changed the title http tls + form + timeout + clearcookie + redirectstrategy HTTP Manager: TLS + postForm + timeout + clearcookie + redirectstrategy May 13, 2026
Copy link
Copy Markdown
Member

@eamansour eamansour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing these changes, Mark! They look great overall, just a couple of very minor comments - I'll be happy to approve once they're sorted out

@Mark-J-Lawrence Mark-J-Lawrence force-pushed the httpFixed branch 2 times, most recently from 0b5ca08 to e738f85 Compare May 14, 2026 15:26
Signed-off-by: Mark Lawrence <mark.j.lawrence@ibm.com>
Signed-off-by: Mark Lawrence <mark.j.lawrence@ibm.com>
Signed-off-by: Mark Lawrence <mark.j.lawrence@ibm.com>
@Mark-J-Lawrence Mark-J-Lawrence merged commit 8aef57f into galasa-dev:main May 15, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants