curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Newline escape sequence with -F

From: Alex Ahn via curl-users <>
Date: Sat, 20 Jun 2020 22:36:22 -0400

Here you go.

Discord is an online application for text and audio communication. It was
designed for gamers but it became popular beyond its initial intended

I haven't tried putting a multiline text in a file. I should try that
sooner or later. I'm still new at using cURL.

For some reason, Command Prompt insists on reformatting instances of \ into
\\. I've included two picture files in the curl command in order to make
the output results to print out. The parameters shown in the results reveal
quite a bit about how Discord works.

I haven't used the verbose or trace options so far.

I dedicate a private channel on the Discord server for testing webhook
stuff. *Shrugs*

Thanks for the help so far, especially in persisting to find a solution.

On Fri, Jun 19, 2020 at 6:50 PM Jeremy Nicoll via curl-users <> wrote:

> On Fri, 19 Jun 2020, at 03:21, Alex Ahn via curl-users wrote:
> > Thanks. I tried ^ with both %0A and \n with -F. No success. For some
> > reason -F won't cooperate when it comes to sending messages to a
> > Discord channel.
> (Whatever that is.)
> Can you give an example of the whole command line (with anything
> confidential xxx-ed out) of what you were trying to do?
> If it's providing a form field value that spans multiple lines, does it
> work if you put the multiline text in a file and tell curl to read the
> value from the file?
> I wonder also if it's completely clear what command curl saw, after
> had (maybe) mangled it. Did you use curl's verbose
> or trace options to see if the command you expected had reached
> curl?
> I don't know if there's a way to tell curl not to go ahead and try the
> communication with a server, ie just to get as far as seeing what
> parameters reached curl.
> --
> Jeremy Nicoll - my opinions are my own.
> -----------------------------------------------------------
> Unsubscribe:
> Etiquette:


2020-06-20_22.21.25_discord.com_30fe7747c9cb.png 2020-06-20_22.21.59_discord.com_6dfabe09f0a9.png cURL_to_Discord_20_June_2020.png
Received on 2020-06-21