Http请求工具,将显示实际请求(Firefox插件Poster的问题)

发布于 2025-01-03 04:14:07 字数 229 浏览 1 评论 0原文

我正在尝试使用 http-post 将我的通用 lisp 应用程序连接到 Drupal 驱动的服务器站点,但在调试我的请求时遇到问题。当我使用 Firefox 插件 Poster 发出请求时,一切正常,但当我从常用 Lisp 应用程序内部发出请求时,我会得到不正确的行为。我真的很想看到 Poster 生成的 http-request,但它似乎没有选择,是否有另一个类似的小应用程序,但会向我显示实际的请求?或者有什么办法可以从海报中得到这个。

I am trying to connect my common lisp application to a Drupal driven server site using http-post and I am having trouble debugging my request. When I use the Firefox plugin Poster to make the request everything works fine but when I make the request from inside my common lisp application I get incorrect behavior. I would really like to see the http-request produced by Poster but it seems to have no option for this, is there another little app that is similar but would show me the actual Request? Or is there someway to get this out of Poster.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

孤城病女 2025-01-10 04:14:07

听起来您可以使用调试 HTTP 代理。 适用于 Linux 和 Mac 的 HTTP 调试代理中的一些建议。

您还可以使用 Wireshark

至于 Common Lisp 部分,你使用什么库?您先登录吗?如果使用 Drakma,您是否使用 cookie jar 将会话 cookie 从一个请求传递到另一个请求? (请参阅文档页面上的示例,搜索 (make-instance 'cookie-jar) )

It sounds like you could use a debugging HTTP proxy. Some suggestions in HTTP debugging proxy for Linux and Mac.

You could also use Wireshark.

As for the Common Lisp part, what library are you using? Are you logging in first? If using Drakma, are you using a cookie jar to pass the session cookies from one request to the other? (see the examples on the documentation page, search for (make-instance 'cookie-jar))

过期以后 2025-01-10 04:14:07

您是否登录了 Drupal 站点?
那么你可能在 lisp 中没有正确的会话 ID。
您可以尝试从命令行使用curl 发出与Poster 中相同的请求。

Are you logged in to the Drupal site?
Then you might not have the correct session id in lisp.
You could try making the same request you did in Poster using curl from a command line.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文