lib543.c 854 B

1234567891011121314151617181920212223242526272829303132
  1. /*****************************************************************************
  2. * _ _ ____ _
  3. * Project ___| | | | _ \| |
  4. * / __| | | | |_) | |
  5. * | (__| |_| | _ <| |___
  6. * \___|\___/|_| \_\_____|
  7. *
  8. * $Id$
  9. *
  10. * Based on Alex Fishman's bug report on September 30, 2007
  11. */
  12. #include "setup.h"
  13. #include "test.h"
  14. int test(char *URL)
  15. {
  16. unsigned char a[] = {0x9c, 0x26, 0x4b, 0x3d, 0x49, 0x4, 0xa1, 0x1,
  17. 0xe0, 0xd8, 0x7c, 0x20, 0xb7, 0xef, 0x53, 0x29, 0xfa,
  18. 0x1d, 0x57, 0xe1};
  19. CURL* easy = curl_easy_init();
  20. char* s = curl_easy_escape(easy, (char*)a, sizeof(a));
  21. (void)URL;
  22. printf("%s\n", s);
  23. curl_free(s);
  24. curl_easy_cleanup(easy);
  25. return 0;
  26. }