{"id":13482400,"url":"https://github.com/blocknotes/curl-crystal","last_synced_at":"2025-10-08T05:30:24.394Z","repository":{"id":68600419,"uuid":"78196358","full_name":"blocknotes/curl-crystal","owner":"blocknotes","description":"Crystal C bindings for libcurl","archived":true,"fork":false,"pushed_at":"2020-04-12T15:57:29.000Z","size":32,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-26T08:31:57.090Z","etag":null,"topics":["crystal","curl","libcurl"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blocknotes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-06T10:12:07.000Z","updated_at":"2023-06-19T08:41:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"d37978e4-f6af-47f6-9973-2cb6a90d6f94","html_url":"https://github.com/blocknotes/curl-crystal","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/blocknotes/curl-crystal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fcurl-crystal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fcurl-crystal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fcurl-crystal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fcurl-crystal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blocknotes","download_url":"https://codeload.github.com/blocknotes/curl-crystal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocknotes%2Fcurl-crystal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278892040,"owners_count":26063919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crystal","curl","libcurl"],"created_at":"2024-07-31T17:01:01.616Z","updated_at":"2025-10-08T05:30:24.097Z","avatar_url":"https://github.com/blocknotes.png","language":"Crystal","readme":"# libcurl for Crystal - PROJECT UNMAINTAINED [![Build Status](https://travis-ci.org/blocknotes/curl-crystal.svg)](https://travis-ci.org/blocknotes/curl-crystal)\n\n\u003e *This project is not maintained anymore*\n\u003e\n\u003e *If you like it or continue to use it fork it please.*\n\n* * *\n* * *\n\nCrystal C bindings for libcurl, the multiprotocol file transfer library - see [libcurl](https://curl.haxx.se/libcurl/)\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  curl-crystal:\n    github: blocknotes/curl-crystal\n```\n\n## Usage\n\nCURL version:\n\n```ruby\nrequire \"curl-crystal\"\nputs String.new LibCurl.curl_version\n```\n\nFetch an URL an print the content to the STDOUT:\n\n```ruby\nrequire \"curl-crystal\"\ncurl = LibCurl.curl_easy_init  # init\nLibCurl.curl_easy_setopt curl, LibCurl::CURLoption::CURLOPT_URL, \"https://www.google.com\"  # set URL\nLibCurl.curl_easy_setopt curl, LibCurl::CURLoption::CURLOPT_FOLLOWLOCATION, 1  # follow redirect\nLibCurl.curl_easy_perform curl  # run\nLibCurl.curl_easy_cleanup curl  # deinit\n```\n\nSimple POST request:\n\n```ruby\nrequire \"curl-crystal\"\ncurl = LibCurl.curl_easy_init  # init\nLibCurl.curl_easy_setopt curl, LibCurl::CURLoption::CURLOPT_URL, \"http://localhost\"\nLibCurl.curl_easy_setopt curl, LibCurl::CURLoption::CURLOPT_POSTFIELDS, \"param1=Just+a+test\u0026param2=12.345\"\nLibCurl.curl_easy_perform curl  # run\nLibCurl.curl_easy_cleanup curl  # deinit\n```\n\nInvalid URL error:\n\n```ruby\nrequire \"curl-crystal\"\ncurl = LibCurl.curl_easy_init\nLibCurl.curl_easy_setopt curl, LibCurl::CURLoption::CURLOPT_URL, \"https://aaa.bbb.ccc.ddd\"\nret = LibCurl.curl_easy_perform curl  # CURLE_COULDNT_RESOLVE_HOST\nputs ret.to_s + \": \" + String.new( LibCurl.curl_easy_strerror( ret ) )\nLibCurl.curl_easy_cleanup curl\n```\n\n## More examples\n\n- [examples](https://github.com/blocknotes/curl-crystal/tree/master/examples) folder\n- libcurl C [examples](https://curl.haxx.se/libcurl/c/example.html)\n\n## Notes\n\nBase on curl version: **7.52.1**\n\n## Contributors\n\n- [Mattia Roccoberton](http://blocknot.es) - creator, maintainer, Crystal fan :)\n","funding_links":[],"categories":["C bindings"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknotes%2Fcurl-crystal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblocknotes%2Fcurl-crystal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocknotes%2Fcurl-crystal/lists"}