cURL y C: libcurl y manejo de memoria

Pablo García-Nieto
1 min readAug 10, 2015

--

Hace unos días se me ocurrió que sería bastante útil tener un código reusable para el futuro que usase libcurl (el bind de cURL en C) para hacer simples peticiones GET y manejar la respuesta de una manera más o menos sencilla.

Con la documentación y los ejemplos de la web oficial reuní y comenté el código para todos aquellos que no tienen demasiada destreza en C (me incluyo) pero sí quieren hacer tareas que pueden parecer más complejas como conectarse a un servidor externo, así que aquí queda como código de partida.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Pablo García-Nieto
Pablo García-Nieto

Written by Pablo García-Nieto

Software engineer, Digital Product + Project Management. València, Spain

No responses yet

Write a response