Ejemplo n.º 1
0
 public static string                    http_GET(this TestFixture_WebServices tfWebServices, string virtualPath)
 {
     if (tfWebServices.notNull() && virtualPath.valid())
     {
         var webResponse = tfWebServices.http_GET_WebResponse(virtualPath);
         var stream      = webResponse.GetResponseStream();
         return(stream.readToEnd());
     }
     return("");
 }
Ejemplo n.º 2
0
        public static string                    http_METHOD(this TestFixture_WebServices tfWebServices, string method, string contentType, string virtualPath, string postData)
        {
            if (tfWebServices.notNull() && virtualPath.valid() && postData.valid())
            {
                var webResponse = tfWebServices.http_METHOD_WebResponse(method, contentType, virtualPath, postData);

                var stream = webResponse.GetResponseStream();
                return(stream.readToEnd());
            }
            return("");
        }