예제 #1
0
 private void connectionInit(CaptchaTraderRequestType type, String username, String password)
 {
     string param = (type.doPost || username == null || password == null) ? "" : "/username:"******"/password:"******".xml");
     _urlConnection = WebRequest.Create(_url);
     _urlConnection.Method = (type.doPost ? "POST" : "GET");
     if (type.doPost)
     {
         _urlConnection.ContentType = "multipart/form-data; boundary=" + _boundary;
         _os = _urlConnection.GetRequestStream();
     }
 }
예제 #2
0
        private void connectionInit(CaptchaTraderRequestType type, String username, String password)
        {
            string param = (type.doPost || username == null || password == null) ? "" : "/username:"******"/password:"******".xml");
            _urlConnection        = WebRequest.Create(_url);
            _urlConnection.Method = (type.doPost ? "POST" : "GET");
            if (type.doPost)
            {
                _urlConnection.ContentType = "multipart/form-data; boundary=" + _boundary;
                _os = _urlConnection.GetRequestStream();
            }
        }
예제 #3
0
 private void connectionInit(CaptchaTraderRequestType type)
 {
     connectionInit(type, null, null);
 }
예제 #4
0
 public CaptchaTraderRequest(CaptchaTraderRequestType type, string username, string password)
 {
     connectionInit(type, username, password);
 }
예제 #5
0
 public CaptchaTraderRequest(CaptchaTraderRequestType type)
 {
     connectionInit(type);
 }
예제 #6
0
 private void connectionInit(CaptchaTraderRequestType type)
 {
     connectionInit(type, null, null);
 }
예제 #7
0
 public CaptchaTraderRequest(CaptchaTraderRequestType type, string username, string password)
 {
     connectionInit(type, username, password);
 }
예제 #8
0
 public CaptchaTraderRequest(CaptchaTraderRequestType type)
 {
     connectionInit(type);
 }