deevroman left a comment (openstreetmap/openstreetmap-website#6096)

> What about if you actually specify a content type with the correct encoding 
> information?

Are you talking about the `Content-Type: application/x-www-form-urlencoded` 
header?

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.

After exporting, the request looked like this:

<details>

```
  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>'
```

</details>



-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6096#issuecomment-2971321088
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/issues/6096/2971321...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to