Re: Newline escape sequence with -F
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
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 <
> 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
> command.com had (maybe) mangled it. Did you use curl's verbose
> or trace options to see if the command you expected had reached
> 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: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html