Show
Ignore:
Timestamp:
10/02/08 08:41:31 (3 months ago)
Author:
poolmmjp
Message:

投稿するとき、+文字をURLエンコードするようにした。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/csharp/MMMMB/MMMMB/MiniBlogs/HatenaHaiku.cs

    r18564 r20445  
    9191            client.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(username + ":" + password))); 
    9292            client.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); 
    93             client.UploadString("http://h.hatena.ne.jp/api/statuses/update.xml", "POST", "source=MMMMB&status=" + Uri.EscapeUriString(message)); 
     93            client.UploadString("http://h.hatena.ne.jp/api/statuses/update.xml", "POST", "source=MMMMB&status=" + Uri.EscapeUriString(message).Replace("+", "%2B")); 
    9494        } 
    9595