<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/25708359?s=20&v=4" /><strong>deevroman</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6096#issuecomment-2971321088">(openstreetmap/openstreetmap-website#6096)</a></div>
<blockquote>
<p dir="auto">What about if you actually specify a content type with the correct encoding information?</p>
</blockquote>
<p dir="auto">Are you talking about the <code class="notranslate">Content-Type: application/x-www-form-urlencoded</code> header?</p>
<p dir="auto">Initially, I found this problem while making this request in the browser. After that, I exported it as a cURL request and removed the extra headers and data until the error changed to 401. So I don't think I need to look for the problem in the shell that I use.</p>
<p dir="auto">After exporting, the request looked like this:</p>
<details>
<pre class="notranslate"><code class="notranslate">  curl 'https://www.openstreetmap.org/api/0.6/changeset/create' \
  -X PUT \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0' \
  -H 'Accept: */*' \
  -H 'Accept-Language: ru,en-US;q=0.7,en;q=0.3' \
  -H 'Accept-Encoding: gzip, deflate, br, zstd' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Authorization: Bearer [REDACTED]' \
  -H 'Origin: null' \
  -H 'Connection: keep-alive' \
  -H 'Cookie: [REDACTED] \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'TE: trailers' \
  --data-raw $'<osm><changeset><tag k="created_by" v="better osm.org v0.9.9.10"/><tag k="comment" v="Delete shop=bicycle name=100% \u0441\u043f\u043e\u0440\u0442\u0430"/></changeset></osm>'
</code></pre>
</details>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6096#issuecomment-2971321088">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO7CJ74UW2ITXTCOST3DMMTRAVCNFSM6AAAAAB7IYPIWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZRGMZDCMBYHA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNJL2XKA57ED4E66JL3DMMTRA5CNFSM6AAAAAB7IYPIWWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVRDLBQA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/6096/2971321088</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>

<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/6096#issuecomment-2971321088",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/6096#issuecomment-2971321088",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>