tree: d91ef6467b6ef2e1ad5c1edd0db482a2563a14ef [path history] [tgz]
  1. src/
  2. build.gradle.kts
  3. gradle.properties
  4. README.md
kotlin-native/samples/curl/README.md

HTTP client

This example shows how to communicate with libcurl, HTTP/HTTPS/FTP/etc client library and how to depend on an artifact published in a maven repository. The sample depends on a library built by libcurl sample so you need to run it first.

To build use ../gradlew assemble.

To run use ../gradlew runReleaseExecutableCurl or execute the program directly:

./build/bin/curl/main/release/executable/curl.kexe 'https://www.jetbrains.com/'

It will perform HTTP get and print out the data obtained.