NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

private static HttpWebResponse PostForm(string postUrl, string userAgent, string contentType, byte[] formData)
{
HttpWebRequest request = WebRequest.Create(postUrl) as HttpWebRequest;


if (request == null)
{
throw new NullReferenceException("request is not a http request");
}
var uri = new Uri(postUrl);
// Set up the request properties.
request.ContentType = contentType;
request.Method = "POST";
request.UserAgent = userAgent;
WebHeaderCollection myWebHeaderCollection = request.Headers;
myWebHeaderCollection.Add("Accept-Encoding", "gzip, deflate");
myWebHeaderCollection.Add("Accept-Language", "tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7");
myWebHeaderCollection.Add("Cache-Control", "max-age=0");
myWebHeaderCollection.Add("Save-Data", "on");
myWebHeaderCollection.Add("Upgrade-Insecure-Requests", "1");
myWebHeaderCollection.Add("Origin", "null");
request.CookieContainer = new CookieContainer();
cookie = GetCookie()[1].ToString();
string cookiname = cookie.Split(':')[0].ToString().Replace("Cookie['", "").Replace("']", "");
string cookievalue = "eyJpdiI6Ikc5YWk3Y1Vmd1wvTEhIekVPZXpKUUtBPT0iLCJ2YWx1ZSI6InVDY3BBZnZ5a2IwWkl1ZE9xU3grTnN4UW5Ha0MxdVlXOHFId25PR0ZHbVpoYkJLWFh1Ujd2MzRJZXBkYjAzaTMwOXRaT01GVXV3ZVpNbVwvdXBrTUF1Zz09IiwibWFjIjoiZTgzNTA1ZGVjMTJmN2MyODRiYmFkZjNjNWFlNzFhNTI3ODVlZDkwY2FmNmRiMTdkZmU4OGQ2NWY3NmRmNTQ4YSJ9";
request.CookieContainer.Add(new Cookie("_ga", "GA1.2.1707423240.1535509126", "/", uri.Host));
request.CookieContainer.Add(new Cookie("_gid", "GA1.2.55424933.1535509126", "/", uri.Host));
request.CookieContainer.Add(new Cookie(cookiname, cookievalue,"/",uri.Host));//cookie.Split(':')[1].ToString().Replace(" ", "").Replace("%3D %3D", "%3D"), "/", uri.Host));
request.CookieContainer.Add(new Cookie("XSRF-TOKEN", "eyJpdiI6IlBhQmFoQmt4ODk5VUkrY3YwT3pxM0E9PSIsInZhbHVlIjoiemlJNTJHbXZubis3OUJrRFRGcmxCRDlvY2VzazlBbTZHa0VZT21Lb25XVmVTck5kWmRrOHFaQ2NMN0RLYlRTbGJGZDZRdW5peFhFYlhQQ0lYdVhRU0E9PSIsIm1hYyI6ImNiZDA4MzE0ZGFkYzA3YmRlZmFkYWU4YTJlZTg1YzQyYTQyMjFkNjNkMzAzNDk4ODUyMjhkNjkzN2RmZWJiZmUifQ", "/", uri.Host));
request.CookieContainer.Add(new Cookie("_gat", "1", "/", uri.Host));
request.ContentLength = formData.Length;
request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
request.Expect = "";
request.KeepAlive = true;
request.KeepAlive = true;
request.AllowAutoRedirect = false;
// You could add authentication here as well if needed:
request.PreAuthenticate = true;
// request.AuthenticationLevel = System.Net.Security.AuthenticationLevel.MutualAuthRequested;
// request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.Default.GetBytes("username" + ":" + "password")));

// Send the form data to the request.
using (Stream requestStream = request.GetRequestStream())
{
requestStream.Write(formData, 0, formData.Length);
requestStream.Close();
}
HttpWebResponse response = request.GetResponse() as HttpWebResponse;
if (response.StatusCode == HttpStatusCode.Redirect || response.StatusCode == HttpStatusCode.MovedPermanently)
{
MessageBox.Show("Başarısız");
}

return response;
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.