There is no problem not worth solving, and no technology not worth learning!

Implementation of \n in bulk cleaned in a captured HTTP request body

在代理软件中捕获的 HTTP 请求体中包含大量的 \n

1. The HTTP request body captured in the proxy software contains a large number of \n . as shown in Figure 1

在代理软件中捕获的 HTTP 请求体中包含大量的 \n
Figure 1

{
  "query": "\n  query getApp($apiKey: String!) {\n    app(apiKey: $apiKey) {\n      applicationUrl\n      redirectUrlWhitelist\n      appProxy {\n        url\n        subPath\n        subPathPrefix\n      }\n    }\n  }\n",
  "variables": {
    "apiKey": "b1872dbbd62320f17101f477a56d6f6e"
  },
  "operationName": "getApp"
}


2. Reference:Online text content keyword deletion – filter removal  . Enter:\n in the keyword list, and then click Process. The results after treatment are as follows, in line with the expectations. as shown in Figure 2

参考:在线文本内容关键词批量删除 - 过滤清除 。http://www.txttool.com/t/?id=NTM5 。在关键词列表中输入:\\n,然后点击处理。处理后的结果如下,符合预期
Figure 2

{
  "query": "  query getApp($apiKey: String!) {    app(apiKey: $apiKey) {      applicationUrl      redirectUrlWhitelist      appProxy {        url        subPath        subPathPrefix      }    }  }",
  "variables": {
    "apiKey": "b1872dbbd62320f17101f477a56d6f6e"
  },
  "operationName": "getApp"
}


3. Finally use beautification in the GraphQL CLI client, and the final request is as expected. as shown in Figure 3

最后在 GraphQL CLI 客户端中使用 美化,最终的请求符合预期
Figure 3

query getApp($apiKey: String!) {
  app(apiKey: $apiKey) {
    applicationUrl
    redirectUrlWhitelist
    appProxy {
      url
      subPath
      subPathPrefix
    }
  }
}



Need long-term technical maintenance or remote troubleshooting?

I am a PHP / Go backend engineer with 15+ years of experience, focused on existing system maintenance, bug fixing, performance optimization, server troubleshooting, WordPress maintenance, and small feature iterations.

If your project is facing any of the following issues, we can start with a small troubleshooting task first:

  • ✅ PHP / Laravel / Yii2 legacy systems without active maintenance
  • ✅ Go / Gin backend APIs that need troubleshooting or optimization
  • ✅ Slow, broken, or unstable WordPress websites
  • ✅ Nginx / MySQL / Redis / Linux server issues
  • ✅ CDN / Cloudflare / DNS / HTTPS configuration problems
  • ✅ Long-term remote technical support or part-time maintenance

More details: About Me & Collaboration

WeChat: 13980074657
Email: shuijingwanwq@gmail.com
Telegram: @shuijingwan
GitHub: https://github.com/shuijingwan

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.