1
0

pwncurl.inc 878 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * pwncurl 0.1
  3. * (c) Copyright 2009 by DracoBlue
  4. *
  5. * @author : DracoBlue (http://dracoblue.com)
  6. * @date : 7th April 2009
  7. * @update : 7th April 2009
  8. *
  9. * This file is provided as is (no warranties).
  10. *
  11. * It's released under the terms of MIT.
  12. *
  13. * Feel free to use it, a little message in
  14. * about box is honouring thing, isn't it?
  15. *
  16. */
  17. #if defined _pwncurl_included
  18. #endinput
  19. #endif
  20. #define _pwncurl_included
  21. #pragma library pwncurl
  22. /**
  23. * @param url the url to fetch the content for
  24. * @param buf Buffer to save the content
  25. * @param buflen Size of the buffer to save the content
  26. *
  27. * @example
  28. * <code>
  29. * new my_uri="http://dracoblue.net/test.php"
  30. * new buf[255];
  31. * printf("Content was: %s", pwncurl_get(my_uri, buf, 255));
  32. * </code>
  33. */
  34. native pwncurl_get(url[],buf[],buflen);