I need my application to upload output to pastebine, but I can not get it to work
WebRequest wr = WebRequest.Create (@ "http://pastebin.com/api_form.php"); ASCIIEncoding encoding = new ASCIIEncoding (); Byte [] Bidata = encoding Getbytes (string .konkat ("pastecod =", SOUTUP, "and paste_private = 0 and paste_exprerer_data = 1D and paste_subdomain = C4A 4238A 923820 DCCR 50 9A 6F775 9B"); Wr.Method = "post"; Wr.ContentType = "application / x-www-form-urlencoded"; Wr.ContentLength = bData.Length; Stream SMIstream = wr.GetRequestStream (); SMyStream.Write (bData, 0, bData.Length); SMyStream.Close ();
& lt; - Episodes are from there
As long as you wr.GetResponse ();
By then, this request is not actually sent, though the example is embarrassing in the failure to use {}
Comments
Post a Comment