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

How to send Post Body Parameter (data) #303

Closed
M-Abughali opened this issue Mar 3, 2023 · 4 comments
Closed

How to send Post Body Parameter (data) #303

M-Abughali opened this issue Mar 3, 2023 · 4 comments

Comments

@M-Abughali
Copy link

M-Abughali commented Mar 3, 2023

we have a post url request which require body data to be sent , but unfortunately we can't find any function/keyword supports us to achieve data , is there any methodology or advices for us ?

Thanks in advance

@michel-kraemer
Copy link
Owner

At the moment, gradle-download-task only supports the HTTP GET method, but what you're proposing sounds like an interesting idea. Can you please tell me more about your use case, so I can decide whether this feature would be useful for other users as well? What kind of data are you trying to send? Form data? Are you really downloading data or are you just trying to send (i.e. upload) data?

@M-Abughali
Copy link
Author

Hey dear @michel-kraemer
currently we are using 3rd library which provide us the translation string files and to defined the files format (xml, json , etc ) we need to send POST request with Body attribute for defined the files format ( --data '
{
"format": "android_sdk"
}
)

@michel-kraemer
Copy link
Owner

I've just publish version 5.4.0. Please use the method and body properties (see ‘Advanced’ section in README).

@M-Abughali
Copy link
Author

@michel-kraemer thanks a lot

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

No branches or pull requests

2 participants