-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add allowing generic HTTP POST body #94
Comments
@Slord6 I uploaded a new version here for you to test https://github.com/victordiaz/PHONK/releases/tag/1.3.3pre |
That's working great. Thanks! |
Is there any chance to get a new release with this enhancements included? |
I think it was already released. In 1.3.1 looking at the release notes. My last use of it looks like:
|
it should work on 1.40 too unless I screwed up at some point upgrading stuff :) @Slord6 btw thx! you just made me realize with your code that at some point Mozilla Rhino interpreter got fat arrows and const!!!! I'll release a new version during the weekend, thx for sharing that code! |
Oh nice, it hadn't even occurred to me they weren't supported so glad it's helpful! |
@victordiaz thanks for looking into it. In v1.3.3pre I had the option to use
but with v1.4.0 I get the error I hope you can include the specific code in the upcoming version! |
@SeriousM you are right, it does not work currently. It seems I didnt merge properly 😅 |
As per discussion #92 , it would be useful to be able to have control over the full body of HTTP POST requests.
For example, I have a simple HTTP wrapper around a JSON-backed database, which expects POST requests to contain only the data to be added to the database. At the moment it is therefore not possible to POST data with Phonk to that end-point.
Example code + expected data at discussion #92
The text was updated successfully, but these errors were encountered: