Yes, you can simplify the curl command by letting curl automatically generate the boundary for you. Here’s how you can rewrite it:
curl
curl 'https://codeberg.org/Benjamin_Loison/Markdown/markup' \ -H 'Content-Type: multipart/form-data' \ -H 'Cookie: cb_sessionid=XXXXXXXXXXXXXXXXXXXX' \ -F 'mode=comment' \ -F 'text=$'"$'```python\nprint(\\'test\\')\n```'"
Content-Type
multipart/form-data
-F
mode
text
This achieves the same result but is much cleaner and easier to maintain.
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.
Vibe can make mistakes. Check answers. Learn more