53
52
request.ContentLength = data.Length;
55
54
using (Stream newStream = request.GetRequestStream ())
57
55
newStream.Write(data, 0, data.Length);
60
57
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
62
58
url = pastebin.GetPasteUrlFromResponse (response);
67
60
Log<Pastebin>.Error (e.ToString ());
68
61
Services.Notifications.Notify ("Pastebin", "An error occured while pasting.");