sendgrid-perl
sendgrid-perl copied to clipboard
414 Request-URI Too Large
When attaching multiple files, I get this error when sending: 414 Request-URI Too Large. Looking into the code, it looks like most of the data is urlencoded. According to the SendGrid support site[1], it looks like this can be avoided by POSTing the data instead of sending it in the URL.
[1] https://support.sendgrid.com/hc/en-us/articles/200181828-HTTP-POSTing-The-Right-Way
I was impacted by this issue as well. I added a pull request (https://github.com/sendgrid/sendgrid-perl/pull/21) for the local changes I made to POST the data to the SendGrid servers.