xml-to-json icon indicating copy to clipboard operation
xml-to-json copied to clipboard

Support passing XML as the BODY as well

Open ebebbington opened this issue 3 years ago • 1 comments

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?

ebebbington avatar Apr 14 '21 13:04 ebebbington

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

thelebdev avatar Jun 28 '21 12:06 thelebdev