Click here to Skip to main content
15,945,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 :
<pre lang="c#">f=png");
            this.httpWebRequest.Timeout = 0x3a98;
            this.httpWebRequest.Method = "Get";
            this.httpWebRequest.UserAgent = "Java/" + this.version_0.ToString();
            this.httpWebRequest.Host = "";
            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);

And POST :

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("");
        this.httpWebRequest.Method = "Post";
        this.httpWebRequest.UserAgent = "Java/" + this.version_0.ToString();
        this.httpWebRequest.Host = "";
        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 :)
Updated 2-Dec-12 4:43am
Expert Coming 2-Dec-12 17:45pm    
You didn't say what you are having trouble with. What is the problem you are facing?
aamer19 6-Dec-12 15:34pm    
Bro, can you make example for registering an account with thes codes ??? then post it ???

please bro i never forget your favour i want it toooo much i cant do it anymore .. becouse there are no more examples for doing that :(
aamer19 6-Dec-12 16:03pm    
steel not got solution :( i dont no about webservice :( i just want example with porject :( please not want just code >....

my thes codes are working :( but i cant use it and make it an application :(
aamer19 6-Dec-12 16:03pm    
Please Understand me :( i cant do it .. i want an example with c# .
or its oky :( ... my codes are about you can use it an example then post it in the project then seded here in comment :( pleeeeeeeeeeeeeeeeeaase

fell me :(

1 solution

This sites programmers saw your question coming miles away: HttpWebRequest/Response in a Nutshell - Part 1[^]
Share this answer
aamer19 14-Dec-12 15:35pm    
No Help Full Yet :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900