ex_01.bmx 396 B

1234567891011121314151617181920
  1. SuperStrict
  2. ' A simple example which outputs the contents of a URL to the console.
  3. ' Also outputs debug info.
  4. '
  5. Framework Net.libcurl
  6. Import BRL.StandardIO
  7. Local curl:TCurlEasy = TCurlEasy.Create()
  8. curl.setOptInt(CURLOPT_VERBOSE, 1)
  9. curl.setOptInt(CURLOPT_FOLLOWLOCATION, 1)
  10. curl.setOptString(CURLOPT_URL, "blitzmax.org")
  11. Local res:Int = curl.perform()
  12. curl.cleanup()