Skip to content

Question: Can I write non-ascii characters in HTTP request body or request header? #698

Closed Answered by ehsandeep
miaochiahao asked this question in Q&A
Discussion options

You must be logged in to vote

@miaochiahao Yes, you can, here is an example using in template-based payload support, you can also use file-based payloads as well, and later apply helper functions at the time of using defined payloads in the request block as shared in the below example.

requests:

  - payloads:
      data:
        - this_is_payload

    raw:
      - |
        GET /manager/html HTTP/1.1
        Host: {{Hostname}}
        Token: {{base64('§data§')}}   
        User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0
        Accept-Language: en-US,en;q=0.9
        Connection: close

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@miaochiahao
Comment options

Answer selected by ehsandeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants