http_impl.h 698 B

12345678910111213141516171819202122232425
  1. /* --- BEGIN COPYRIGHT BLOCK ---
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. * --- END COPYRIGHT BLOCK --- */
  6. #ifndef HTTP_IMPL_H__
  7. #define HTTP_IMPL_H__
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. int http_impl_init(Slapi_ComponentId *plugin_id);
  12. int http_impl_get_text(char *url, char **data, int *bytesRead);
  13. int http_impl_get_binary(char *url, char **data, int *bytesRead);
  14. int http_impl_get_redirected_uri(char *url, char **data, int *bytesRead);
  15. int http_impl_post(char *url, httpheader **httpheaderArray, char *body, char **data, int *bytesRead);
  16. void http_impl_shutdown();
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif