http.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __HTTP_H
  2. #define __HTTP_H
  3. /*****************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) 2000, Daniel Stenberg, <[email protected]>, et al.
  11. *
  12. * In order to be useful for every potential user, curl and libcurl are
  13. * dual-licensed under the MPL and the MIT/X-derivate licenses.
  14. *
  15. * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  16. * copies of the Software, and permit persons to whom the Software is
  17. * furnished to do so, under the terms of the MPL or the MIT/X-derivate
  18. * licenses. You may pick one of these licenses.
  19. *
  20. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  21. * KIND, either express or implied.
  22. *
  23. * $Id$
  24. *****************************************************************************/
  25. /* ftp can use this as well */
  26. CURLcode Curl_ConnectHTTPProxyTunnel(struct connectdata *conn,
  27. int tunnelsocket,
  28. char *hostname, int remote_port);
  29. /* protocol-specific functions set up to be called by the main engine */
  30. CURLcode Curl_http(struct connectdata *conn);
  31. CURLcode Curl_http_done(struct connectdata *conn);
  32. CURLcode Curl_http_connect(struct connectdata *conn);
  33. /* The following functions are defined in http_chunks.c */
  34. void Curl_httpchunk_init(struct connectdata *conn);
  35. CHUNKcode Curl_httpchunk_read(struct connectdata *conn, char *datap,
  36. ssize_t length, ssize_t *wrote);
  37. #endif