I'm certain you'll be able to accomplish this with M::UA. Can you share
what the HTML error produced is?
Can you share the output that you are comparing that you are noticing is so
similar between curl and M::UA? You're using -v for curl. Also set the
MOJO_CLIENT_DEBUG env variable to 1.
See how
I had quite a bit of success recently using Mojo::UserAgent so I tried to
replace a curl command to do a backup of my Fritz.box router with M::U.
Here is the curl command:
curl -s -k -o $OUT --form sid=$SID --form ImportExportPassword=$BAKPWD \
--form ConfigExport=
It's possible the `-k` option to curl is the difference. The equivalent in
Mojo::UserAgent is `$ua->insecure(1)` (which you can chain off of).
Scott
On Wednesday, May 13, 2020 at 3:56:26 PM UTC-6, Michael Lackhoff wrote:
>
> I had quite a bit of success recently using Mojo::UserAgent so I tried