Join the Conversation

To sign in, use your existing MySonicWall account. To create a free MySonicWall account click "Register".

Options

SonicOS-API Firmware Upload

I am trying to use the firmware/download  endpoint to upload new firmware to devices.

The documentation shows the body should just be the file binary.

There is no mention of encoding or anything. When I use UTF-8 I get an error response.

No boundary found

I try to adjust the ContentType from:

multipart/form-data

to

multipart/form-data; boundary="b22798e2-a752-44d5-9280-56f1d9d79360"

and the body is:

--b22798e2-a752-44d5-9280-56f1d9d79360
<Firmware>
--b22798e2-a752-44d5-9280-56f1d9d79360--

But this just gives me The underlying connection was closed: An unexpected error occurred on a send.

Category: Developer Hub
Reply

Answers

Sign In or Register to comment.