Saturday 3 September 2011

API v1 - Decode HTML

Data:

API Call: http://api.borigami.net/v1.php?k=htmlentities

Input:

phase=decode
data=<script>alert('Hello');</script>
  • Part in blue color is a constant.
  • Part in red color is text which will be decoded.
  • Input must be post variables

Output:

  • In case of error:
  • kind=error
    data=Invalid request!
    

    Part in red color is error message.

  • In case of success:
  • kind=success
    data=<script>alert('Hello');</script>
    

    Part in red color is decoded text.

No comments:

Post a Comment