<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ameotokopg</author_name>
  <author_url>https://blog.hatena.ne.jp/ameotokopg/</author_url>
  <blog_title>ameotokopgの日記</blog_title>
  <blog_url>https://ameotokopg.hatenadiary.org/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>WebAPIやスクレイピングを行った際に、UploadStringやHTTPWebRequestで取得やプッシュを行っている。 この際、失敗した場合の処理でHTTPヘッダのステータスコードなどを取得する例は多いが、レスポンスのコンテント部分を取得する例があまり見当たらないため、ここにメモしておく。 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication4 { class Program { static void Main…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fameotokopg.hatenadiary.org%2Fentry%2F20170303%2F1488508567&quot; title=&quot;HTTPのエラーレスポンスの取得 - ameotokopgの日記&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>2017-03-03 11:36:07</published>
  <title>HTTPのエラーレスポンスの取得</title>
  <type>rich</type>
  <url>https://ameotokopg.hatenadiary.org/entry/20170303/1488508567</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
