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

Support passing XML as the BODY as well #4

Open
ebebbington opened this issue Apr 14, 2021 · 1 comment
Open

Support passing XML as the BODY as well #4

ebebbington opened this issue Apr 14, 2021 · 1 comment
Assignees

Comments

@ebebbington
Copy link
Contributor

Running into cases where because the XML i'm trying to parse is so large, passing it as a query string results in a an error: URI too long

You can use this as an example input: https://boardgamegeek.com/xmlapi2/thing?id=13&versions=1&stats=1

It'd be great if your API could also support a POST method to pass the data in as the body?

@thelebdev
Copy link

Are you passing that entire XML file into the URI?
If that's the case, I recommend the following mitigation steps:

  1. Create a .xml file
  2. Host it somewhere public (e.g. Google Drive)
  3. Attach the link to that file in your request to xml-to-json's base API URL

@ethanosullivan ethanosullivan self-assigned this Apr 26, 2022
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

3 participants