Implementation of \n in bulk cleaned in a captured HTTP request body
1. The HTTP request body captured in the proxy software contains a large number of \n . as shown in 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
{
"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
query getApp($apiKey: String!) {
app(apiKey: $apiKey) {
applicationUrl
redirectUrlWhitelist
appProxy {
url
subPath
subPathPrefix
}
}
}


