Click here to Skip to main content
12,747,162 members (30,315 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
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 :)
Posted 2-Dec-12 5:42am
Updated 2-Dec-12 5: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

Rate this: bad
Please Sign up or sign in to vote.

Solution 3

This sites programmers saw your question coming miles away: HttpWebRequest/Response in a Nutshell - Part 1[^]
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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100