Results 1 to 5 of 5

Thread: httpwebrequest + response .. Get And Post

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2012
    Posts
    4

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2012
    Posts
    4

    Re: httpwebrequest + response .. Get And Post

    CAn Any One Answer ????????? :S :S :S

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: httpwebrequest + response .. Get And Post

    What is your question?
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2012
    Posts
    4

    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 ?

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2012
    Posts
    4

    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
  •  



Click Here to Expand Forum to Full Width