<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ymotongpoo</author_name>
  <author_url>https://blog.hatena.ne.jp/ymotongpoo/</author_url>
  <blog_title>YAMAGUCHI::weblog</blog_title>
  <blog_url>https://ymotongpoo.hatenablog.com/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>はじめに こんにちは、Python界のSIGSEGVです。C/API拡張書こうと思って色々書き散らかしてるわけですが、libcurl使って結果をchar*に保存する方法にけっこう時間を取られたのでメモします。 参考 libcurl - the multiprotocol file transfer library 本家のサンプルコード見れば大体わかると思いますが、なにせAPIが多いので慣れるまではググってピンポイントで使いどころ調べるほうが速い。読み込んだものを直接標準出力に吐く場合は特に気にすることないんですが、char*に保存したい場合は、callback関数を書いてやって、curl_ea…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fymotongpoo.hatenablog.com%2Fentry%2F20110508%2F1304870291&quot; title=&quot; libcurlでHTTPレスポンスの結果をchar*に保存する - YAMAGUCHI::weblog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-05-08 00:58:11</published>
  <title> libcurlでHTTPレスポンスの結果をchar*に保存する</title>
  <type>rich</type>
  <url>https://ymotongpoo.hatenablog.com/entry/20110508/1304870291</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
