Request body received empty in POST request
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
Hi, this is similar to issue #102 The only difference being that the javascript that I am calling is embedded in the html that is opened in the webview. The javascript is called upon tapping on the 'Submit' button. The javascript is being called fine, the request is hitting the server, however, the request received has empty body.
For further debugging, I have tried the following:
- When I open the page in Chrome browser and hit the submit button, I get the request with all the form data as expected. Thus the javascript seems to be working fine.
- Just before the
form.submit()I have called aalert("form has " + form.length + " members)code to print the number of members in the form. In the browser, as well as the webview, the number of elements shown is as expected. Thus even in the webview, the form is being populated fine.
Still, when I submit the form through the webview, the request is received with an empty body. Could you suggest what do I need to do here?
BTW! super awesome work. Thanks for building and maintaining this. 👍
Regards,
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the embedded HTML form submission in the Unity webview and compare the resulting POST request with the same form opened in Chrome. Use the reported form population and empty-body behavior as checks; done means the webview request includes the submitted form data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, javascript, unity
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100