README 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. _ _ ____ _
  2. ___| | | | _ \| |
  3. / __| | | | |_) | |
  4. | (__| |_| | _ <| |___
  5. \___|\___/|_| \_\_____|
  6. This directory is for libcurl programming examples. They are meant to show
  7. some simple steps on how you can build your own application to take full
  8. advantage of libcurl.
  9. If you end up with other small but still useful example sources, please mail
  10. them for submission in future packages and on the web site.
  11. BUILDING
  12. The Makefile.example is an example makefile that could be used to build these
  13. examples. Just edit the file according to your system and requirements first.
  14. Most examples should build fine using a command line like this:
  15. $ `curl-config --cc --cflags --libs` -o example example.c
  16. Some compilers don't like having the arguments in this order but instead
  17. want you do reorganize them like:
  18. $ `curl-config --cc` -o example example.c `curl-config --cflags --libs`
  19. *PLEASE* do not use the curl.haxx.se site as a test target for your libcurl
  20. applications/experiments. Even if some of the examples use that site as a URL
  21. at some places, it doesn't mean that the URLs work or that we expect you to
  22. actually torture our web site with your tests! Thanks.
  23. EXAMPLES
  24. Each example source code file is designed to be and work stand-alone and
  25. rather self-explanatory. The examples may at times lack the level of error
  26. checks you need in a real world, but that is then only for the sake of
  27. readability: to make the code smaller and easier to follow.