SO中文参考
首页
(current)
程序语言
c
java
python
c++
go
javascript
swift
c#
操作系统
linux
ubuntu
centos
unix
数据库
oracle
mysql
mongodb
postgresql
框架
node.js
angular
react-native
avalon
django
twisted
hadoop
.net
移动开发
android
ios
搜索
html 中的 api 响应。当我尝试保存响应时,karate.readAsString() 抛出错误400 请求标头或 Cookie 太多...</desc> <question vote="1"> <p>我正在使用空手道框架,我收到 html 格式的 api 响应,但我在验证时遇到问题</p> <p>回复:-</p> <pre><code><html> <head><title>400 Request Header Or Cookie Too Large</title></head> <body> <center><h1>400 Bad Request</h1></center> <center>Request Header Or Cookie Too Large</center> </body> </html> </code></pre> <p>我如何提取:-</p> <p>标题中的“400 请求标头或 Cookie 太大” 来自中心的“请求标头或 Cookie 太大” ----------x--------------x----------------x----- --------</p> <p>我的代码:</p> <pre><code>Given: xxx Whwn: xxx Then status 400 * print 'printing response' * print response * def text = karate.readAsString(response). #throws error #(No such file or directory) * def token = karate.extract(text, ??? , ???) </code></pre> <p>请帮忙。预先感谢</p> </question> <answer tick="false" vote="0"> <p>在这种情况下,<pre><code>response</code></pre>已经是一个字符串,所以只需使用它即可。参考:<a href="https://github.com/karatelabs/karate#responsetype" rel="nofollow noreferrer">https://github.com/karatelabs/karate#responsetype</a></p> <pre><code>* def token = karate.extract(response, ??? , ???) </code></pre> </answer> </body></html>
问题描述
投票:0
回答:0
api
automated-tests
karate
最新问题
Pulsar 包发布
将Windows窗体中的DataGridView绑定到列表<List<T>>
Vue JS 3 可组合项良好实践
Rails:运行 wkhtmltopdf 时出错 --(加载共享库时出错)
计算高效且可扩展的 SVG 字符路径
Wicket 中类似 Google 的寻呼
无法通过复选框更改主题:选中
Gradle 找不到 Antlr 令牌文件
当 ViewModel 使用 Java 且 UI 使用 Jetpack Compose (Kotlin) 时,如何观察列表中的变化
“PHPUnit 测试资源管理器”VS Code 扩展给出“session_start(): 会话在标头已发送后无法启动”错误
如何为 RTSP 捕获创建准确的 C++ 定时器循环
iPhone 设备上运行的 iOS 应用程序无法连接 mac 上的本地解析服务器
Raspbian/Debian 安装 Docker - Docker 存储库出现 apt https 错误
Angular 分页生成错误的页数
如何每页只显示一次表格行?
如何在WordPress中实现同一页面的多个分页
当用户使用 React Router v6 手动输入页面 href 时,如何防止 React Spa 中的导航?
BigQuery Python 笔记本手动运行正常,但在计划时失败
JS:对Eventloop和全局执行上下文的疑惑
停止 xunit 生成全局使用
© www.soinside.com 2019 - 2024. All rights reserved.