Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ynh_local_curl #1857

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

Update ynh_local_curl #1857

wants to merge 1 commit into from

Conversation

chri2
Copy link
Contributor

@chri2 chri2 commented May 29, 2024

YunoHost/issues#2396

depends on #1856

New version at work can be observed here: https://codeberg.org/flohmarkt/flohmarkt_ynh/src/commit/ac1e1798ff56249848f6728013e1053416aa3db6/scripts/_common.sh#L136

Improvements:

  • allow GET, DELETE, PUT and POST (default)
  • allow to provide data other than 'key1=value1&key2=value2' e.g. to post json
  • --line_match allows to check the server answer to return true or false
  • other named arguments to pass user and password, disable a 2 second wait needed for downward compatibility
  • allows headers to be send

@chri2
Copy link
Contributor Author

chri2 commented Jun 15, 2024

Found an issue I would iron out if this PR is considered as a good idea: https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/66#issuecomment-2022985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants