|
-
Nov 30th, 2012, 07:57 AM
#1
Thread Starter
New Member
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
-
Dec 2nd, 2012, 10:25 AM
#2
Thread Starter
New Member
Re: httpwebrequest + response .. Get And Post
CAn Any One Answer ????????? :S :S :S
-
Dec 2nd, 2012, 03:29 PM
#3
Re: httpwebrequest + response .. Get And Post
-
Dec 3rd, 2012, 11:51 AM
#4
Thread Starter
New Member
-
Dec 6th, 2012, 08:07 AM
#5
Thread Starter
New Member
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 ???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|