From c8a5e7aaec18e6f0d352b9fe86342c78ed1f24e4 Mon Sep 17 00:00:00 2001 From: Juraj Michalek Date: Wed, 1 May 2013 11:43:43 +0200 Subject: [PATCH] Add curl example - generate C code by curl --- README.md | 14 ++++++++++++++ curl/compile-source-code.sh | 3 +++ curl/generate-source-code.sh | 3 +++ 3 files changed, 20 insertions(+) create mode 100755 curl/compile-source-code.sh create mode 100755 curl/generate-source-code.sh diff --git a/README.md b/README.md index f507aa2..3c40ea5 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,20 @@ How to run: ./example-02 ./example-03 +curl +---- + +curl command line tool for sending requests via http and many other protocols. +It is also able to create skeleton of C application for libcurl. + +How to run: + + cd curl + ./generate-source-code.sh + ./compile-source-code.sh + ./download + + GTK+ ---- diff --git a/curl/compile-source-code.sh b/curl/compile-source-code.sh new file mode 100755 index 0000000..ce18a08 --- /dev/null +++ b/curl/compile-source-code.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +gcc -lcurl download.c -o download diff --git a/curl/generate-source-code.sh b/curl/generate-source-code.sh new file mode 100755 index 0000000..94231b3 --- /dev/null +++ b/curl/generate-source-code.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +curl http://www.ysoft.com -o index.html --libcurl download.c