Changeset 20445 for lang/csharp

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

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

Location:
lang/csharp/MMMMB/MMMMB/MiniBlogs
Files:
6 modified

Legend:

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

    r17635 r20445  
    9999        public void Post(string message) 
    100100        { 
    101             postCore("http://mixi.jp/add_echo.pl", "body=" + HttpUtility.UrlEncode(message, Encoding.GetEncoding("euc-jp")) + "&post_key=" + postKey + "&redirect=recent_echo"); 
     101            postCore("http://mixi.jp/add_echo.pl", "body=" + HttpUtility.UrlEncode(message, Encoding.GetEncoding("euc-jp")).Replace("+", "%2B") + "&post_key=" + postKey + "&redirect=recent_echo"); 
    102102        } 
    103103 
  • lang/csharp/MMMMB/MMMMB/MiniBlogs/FriendFeed.cs

    r18564 r20445  
    102102            client.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); 
    103103            client.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(username + ":" + password))); 
    104             client.UploadString("http://friendfeed.com/api/share", "POST", "title=" + Uri.EscapeUriString(message)); 
     104            client.UploadString("http://friendfeed.com/api/share", "POST", "title=" + Uri.EscapeUriString(message).Replace("+", "%2B")); 
    105105        } 
    106106 
  • 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 
  • lang/csharp/MMMMB/MMMMB/MiniBlogs/Jaiku.cs

    r18372 r20445  
    8989            WebClient client = new WebClient(); 
    9090            client.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); 
    91             client.UploadString("http://api.jaiku.com/json", "POST", "user=" + username + "&personal_key=" + password + "&method=presence.send&message=" + Uri.EscapeUriString(message)); 
     91            client.UploadString("http://api.jaiku.com/json", "POST", "user=" + username + "&personal_key=" + password + "&method=presence.send&message=" + Uri.EscapeUriString(message).Replace("+", "%2B")); 
    9292        } 
    9393 
  • lang/csharp/MMMMB/MMMMB/MiniBlogs/Twitter.cs

    r18564 r20445  
    8585            WebClient client = new WebClient(); 
    8686            client.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(username + ":" + password))); 
    87             client.UploadString("http://twitter.com/statuses/update.xml", "POST", "source=MMMMB&status=" + Uri.EscapeUriString(message)); 
     87            client.UploadString("http://twitter.com/statuses/update.xml", "POST", "source=MMMMB&status=" + Uri.EscapeUriString(message).Replace("+", "%2B")); 
    8888            Thread.Sleep(2000); // �x���΍�       } 
    8989 
  • lang/csharp/MMMMB/MMMMB/MiniBlogs/Wassr.cs

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