本文介绍了400个不良请求_的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在这个webtest中面临一些验证响应代码问题。我们遇到了400个错误请求错误。下面是记录的webtest的代码

Hi,

I am facing some validate response code issue in this webtest. we are experiencing 400 bad request error. below is th code for the recorded webtest

 WebTestRequest request25 = new WebTestRequest("http://edvxprowebct02.redmond.corp.microsoft.com/ClientBin/Microsoft-EDD-Max-Busi" +
                    "nessServices-RIA-Web-MaxDomainService.svc/binary");
            request25.Method = "POST";
            StringHttpBody request25Body = new StringHttpBody();
            request25Body.ContentType = "application/soap+msbin1";
            request25Body.InsertByteOrderMark = false;
            request25Body.BodyString = "VsaVD\n\0��>http://tempuri.org/MaxDomainService/GetPackagingOptionsLookups" +
                "@DomainServiceQueryDomainServicesD�1z)H�M��C`�\\�D,D*�D\0���http://edv" +
                "xprowebct02.redmond.corp.microsoft.com/ClientBin/Microsoft-EDD-Max-BusinessServi" +
                "ces-RIA-Web-MaxDomainService.svc/binaryV@GetPackagingOptionsLookupshttp://" +
                "tempuri.org/";
            request25.Body = request25Body;
            yield return request25;
            request25 = null;


我是surya techie


I am surya techie

推荐答案

您的网址(可能是额外的标签)似乎存在问题,这是您为webtest录制的

It seems problem in your URL (may be extra tags) which u r recording for webtest

Pls。首先确认天气URL是否可访问,如果可以访问则尝试记录它

Pls. First confirm wheather URL is accessible or not, if it is accessible then try to record it

问候,

Himanshu


这篇关于400个不良请求_的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 19:32