Click here to Skip to main content
Rate this: bad
good
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 = "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 :
 
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 Smile | :)
Posted 2-Dec-12 4:42am
aamer19401
Edited 2-Dec-12 4:43am
v2
Comments
Expert Coming at 2-Dec-12 17:45pm
   
You didn't say what you are having trouble with. What is the problem you are facing?
aamer19 at 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 at 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 at 6-Dec-12 16:03pm
   
Please Understand me :( i cant do it .. i want an example with c# .
or vb.net 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
good
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[^]
  Permalink  
Comments
aamer19 at 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
0 OriginalGriff 534
1 Gihan Liyanage 298
2 ChintanShukla 295
3 RyanDev 250
4 Richard Deeming 250
0 Sergey Alexandrovich Kryukov 8,906
1 OriginalGriff 7,771
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
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