httpwebrequest + response .. Get And Post
Hi All ,,, Im New In This Site ... So Hope This Site And it's programers Helpfull ...
i Want the Get And Post ... I Want Register New Accout FRom Site .... THen I have Some Informs about it .. But this is my 1st try and i didnt understand it, how ever thes are some informs about get and post
Get :
Code:
this.httpWebRequest = (HttpWebRequest) WebRequest.Create("http://195.211.48.27/init?w=128&h=40&f=png");
this.httpWebRequest.Timeout = 0x3a98;
this.httpWebRequest.Method = "Get";
this.httpWebRequest.UserAgent = "Java/" + this.version_0.ToString();
this.httpWebRequest.Host = "register.nimbuzz.com";
this.httpWebRequest.KeepAlive = true;
this.httpWebRequest.Accept = "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2";
this.httpWebResponse = (HttpWebResponse) this.httpWebRequest_0.GetResponse();
Stream responseStream = this.httpWebResponse_0.GetResponseStream();
new StreamReader(responseStream);
bitmap = new Bitmap(responseStream);
}
catch
{
}
And Post :
Code:
string s = "s=" + this.httpWebResponse_0.Headers.Get("Session-Id") + "\r\nun=" + Us + "\r\npw=" + Ps + "\r\nc=" + C + "\r\ndid=MIDP\r\nl=en\r\npid=nimbuzz\r\ncid=nimbuzz\r\ne=" + str + "\r\n";
byte[] bytes = Encoding.UTF8.GetBytes(s);
this.httpWebRequest = (HttpWebRequest) WebRequest.Create("http://195.211.48.27/register");
this.httpWebRequest.Method = "Post";
this.httpWebRequest.UserAgent = "Java/" + this.version_0.ToString();
this.httpWebRequest.Host = "register.nimbuzz.com";
this.httpWebRequest.Accept = "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2";
this.httpWebRequest.KeepAlive = true;
this.httpWebRequest.ContentType = "application/x-www-form-urlencoded";
this.httpWebRequest.Expect = "";
this.httpWebRequest.GetRequestStream().Write(bytes, 0, bytes.Length);
Please So Programmer see at this codes and try register new accout and publish it in this post :)
Re: httpwebrequest + response .. Get And Post
CAn Any One Answer ????????? :S :S :S
Re: httpwebrequest + response .. Get And Post
Re: httpwebrequest + response .. Get And Post
my question is i can't register an account throw thes codes ... actully may i forget some codes or script >> please try regist trhow thes informs :( with httpwebrequest :( .... you can or not :( ?
Re: httpwebrequest + response .. Get And Post
h'h why no answering ??? is there no programmer cant understand this codes ?????
or just not want to help people ???