mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-11 22:40:49 +01:00
Add curl example - generate C code by curl
This commit is contained in:
14
README.md
14
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+
|
||||
----
|
||||
|
||||
|
||||
3
curl/compile-source-code.sh
Executable file
3
curl/compile-source-code.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
gcc -lcurl download.c -o download
|
||||
3
curl/generate-source-code.sh
Executable file
3
curl/generate-source-code.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
curl http://www.ysoft.com -o index.html --libcurl download.c
|
||||
Reference in New Issue
Block a user