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(); } }
private void connectionInit(CaptchaTraderRequestType type) { connectionInit(type, null, null); }
public CaptchaTraderRequest(CaptchaTraderRequestType type, string username, string password) { connectionInit(type, username, password); }
public CaptchaTraderRequest(CaptchaTraderRequestType type) { connectionInit(type); }