<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>javascripter</author_name>
  <author_url>https://blog.hatena.ne.jp/javascripter/</author_url>
  <blog_title>素人がプログラミングを勉強していたブログ</blog_title>
  <blog_url>https://javascripter.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>CGIが動く環境を作ったので、試してみる。 こういうのはJSONPって言うのかな。 #!/usr/bin/ruby require &quot;cgi&quot; puts &quot;Content-type: text/javascript\n\n&quot; cgi = CGI.new fun_name = cgi[&quot;callback&quot;].gsub(/\W+/, &quot;&quot;) if fun_name.empty? fun_name = &quot;callback&quot; end puts %!window[&quot;#{ fun_name }&quot;](&quot;#{ ENV[&quot;HTTP_HOST&quot;] }&quot;)! をCGIとして保存して、 &lt;script type=&quot;t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjavascripter.hatenablog.com%2Fentry%2F20081203%2F1228312243&quot; title=&quot;自分のHTTP_HOSTを返すCGI - 素人がプログラミングを勉強していたブログ&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>2008-12-03 22:50:43</published>
  <title>自分のHTTP_HOSTを返すCGI</title>
  <type>rich</type>
  <url>https://javascripter.hatenablog.com/entry/20081203/1228312243</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
