Repository of "Pbtt" (Post Body Translator Tool). Give a HTTP body param as input and it will output the XML + Json versions of it.
Enjoy !
chmod +x scripts/install.sh
sudo scripts/install.sh
chmod +x scripts/uninstall.sh
sudo scripts/uninstall.sh
pbtt '?blabla=truc&machin=test'
> application/json :
> {"blabla": "truc", "machin": "test"}
> text/xml :
> <?xml version="1.0" encoding="UTF-8"?><blabla>truc</blabla><machin>test</machin>
pbtt '<?xml version="1.0" encoding="UTF-8"?><blabla>truc</blabla><machin>test</machin>' -x
> application/x-www-form-urlencoded :
> ?blabla=truc&machin=test
> application/json :
> {"blabla": "truc", "machin": "test"}
pbtt '{"blabla": "truc", "machin": "test"}' -j
> application/x-www-form-urlencoded :
> ?blabla=truc&machin=test
> text/xml :
> <?xml version="1.0" encoding="UTF-8"?><application/x-www-form-urlencoded :?blabla>truc</application/x-www-form-urlencoded :?blabla><machin>test</machin>
You shall not contact