あにす #7565(2008/09/05 03:37 GMT) [ C# ] Rating1/1=1.00
今回は短くしなくて良いのですね。 こういう遊び心のあるお題、好きです。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
using System; using System.Collections.Specialized; using System.Net; using System.Text; class Program { static void Main(string[] args) { //接続の作成 WebClient webClient = new WebClient(); webClient.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); //送信パラメータ作成 NameValueCollection postValues = new NameValueCollection(); postValues.Add("title", "LL Golf Hole 9 - トラックバックを打つ"); postValues.Add("excerpt", "あにすです。面白いお題の数々、楽しませて頂きました。"); postValues.Add("url", "http://ja.doukaku.org/207/"); postValues.Add("blog_name", "どう書く?org"); //トラックバック送信 byte[] r = webClient.UploadValues("http://ll.jus.or.jp/2008/blog/archives/38/trackback", postValues); //テスト用 //byte[] r = webClient.UploadValues("http://d.hatena.ne.jp/takano32/20080905", postValues); //後始末 webClient.Dispose(); //レスポンス確認 Console.WriteLine(Encoding.UTF8.GetString(r)); Console.ReadLine(); } }
Rating1/1=1.00-0+
[ reply ]
あにす
#7565()
[
C#
]
Rating1/1=1.00
今回は短くしなくて良いのですね。 こういう遊び心のあるお題、好きです。
Rating1/1=1.00-0+
[ reply ]