http_impl.h 832 B

123456789101112131415161718192021222324252627282930313233
  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. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * --- END COPYRIGHT BLOCK --- */
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. #ifndef HTTP_IMPL_H__
  13. #define HTTP_IMPL_H__
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. int http_impl_init(Slapi_ComponentId *plugin_id);
  18. int http_impl_get_text(char *url, char **data, int *bytesRead);
  19. int http_impl_get_binary(char *url, char **data, int *bytesRead);
  20. int http_impl_get_redirected_uri(char *url, char **data, int *bytesRead);
  21. int http_impl_post(char *url, httpheader **httpheaderArray, char *body, char **data, int *bytesRead);
  22. void http_impl_shutdown();
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif