Tôi đang cố gắng ghi lại giao tiếp máy khách-máy chủ web của mình bằng cách sử dụng Jmeter. Sau khi Jmeter và trình duyệt được cấu hình để ghi ứng dụng. Khi một yêu cầu bài viết được thực hiện từ máy khách đến máy chủ, lỗi sau sẽ xảy ra. Bất kỳ ý tưởng làm thế nào để mã hóa URL đang được ghi lại?Máy chủ proxy Jmeter Http ném java.net.URISyntaxException: Ký tự không hợp lệ trong truy vấn tại lỗi chỉ mục
java.net.URISyntaxException: Illegal character in query at index 238: http://localhost:8080/updateBoxCorrectionInstantly?examKey=16-17-%3ECBSE-%3ETERM%20I-%3ESA1-%3EVI-%3EScience-%3EA&studentName=AMOGH%20YOGESH%20KALE&studentRollno=3&studentND=-1&sheetName=cb8e806b32e9d670698655e0d2da10e3_img001210.jpg&box={%22$center%22:%22(66.0,%202253.0)%22,%22$conf%22:%22H%22,%22$corrected%22:true,%22$isAdminCorrected%22:true,%22$correction%22:%22-%22,%22$isDrawn%22:false,%22coords%22:[36,2214,96,2292],%22isTitle%22:false,%22pos%22:%22-%22,%22pred%22:%22-%22,%22boxTypeId%22:0,%22score%22:1}
at java.net.URI$Parser.fail(URI.java:2829)
at java.net.URI$Parser.checkChars(URI.java:3002)
at java.net.URI$Parser.parseHierarchical(URI.java:3092)
at java.net.URI$Parser.parse(URI.java:3034)
at java.net.URI.<init>(URI.java:595)
at java.net.URL.toURI(URL.java:949)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:232)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1075)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:212)
Điều này có thể giúp bạn: http://meta.stackexchange.com/questions/79057/curly-brackets-in-urls – SpaceTrucker
điều này xảy ra trong quá trình ghi hoặc phát lại? bạn đã thử sử dụng chức năng 'http: //jmeter.apache.org/usermanual/functions.html #__ urlencode' chưa? –
là yêu cầu của bạn thực sự 'POST'? tại sao bạn gửi quá nhiều tham số url cho yêu cầu đăng bài? Bạn không thể gửi chúng như là một phần của yêu cầu cơ thể bằng cách sử dụng bất động sản yêu cầu formurlencoded? –