Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 3
0
 private void connectionInit(CaptchaTraderRequestType type)
 {
     connectionInit(type, null, null);
 }
Ejemplo n.º 4
0
 public CaptchaTraderRequest(CaptchaTraderRequestType type, string username, string password)
 {
     connectionInit(type, username, password);
 }
Ejemplo n.º 5
0
 public CaptchaTraderRequest(CaptchaTraderRequestType type)
 {
     connectionInit(type);
 }
Ejemplo n.º 6
0
 private void connectionInit(CaptchaTraderRequestType type)
 {
     connectionInit(type, null, null);
 }
Ejemplo n.º 7
0
 public CaptchaTraderRequest(CaptchaTraderRequestType type, string username, string password)
 {
     connectionInit(type, username, password);
 }
Ejemplo n.º 8
0
 public CaptchaTraderRequest(CaptchaTraderRequestType type)
 {
     connectionInit(type);
 }