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 :
And Post :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 { }
Please So Programmer see at this codes and try register new accout and publish it in this postCode: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);![]()




Reply With Quote