http_impl.h 730 B

12345678910111213141516171819202122232425
  1. /**
  2. * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to
  3. * license terms. Copyright 2001 Sun Microsystems, Inc.
  4. * Some preexisting portions Copyright 2001 Netscape Communications Corp.
  5. * All rights reserved.
  6. */
  7. #ifndef HTTP_IMPL_H__
  8. #define HTTP_IMPL_H__
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. int http_impl_init(Slapi_ComponentId *plugin_id);
  13. int http_impl_get_text(char *url, char **data, int *bytesRead);
  14. int http_impl_get_binary(char *url, char **data, int *bytesRead);
  15. int http_impl_get_redirected_uri(char *url, char **data, int *bytesRead);
  16. int http_impl_post(char *url, httpheader **httpheaderArray, char *body, char **data, int *bytesRead);
  17. void http_impl_shutdown();
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif