Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: LWP::UserAgent post, file upload corruption.

by jcb (Priest)
on Feb 04, 2020 at 00:31 UTC ( #11112349=note: print w/replies, xml ) Need Help??


in reply to LWP::UserAgent post, file upload corruption.

Are you sure that '/home/location/fie.bin' has not been somehow corrupted? Do you have a way to verify that file other than uploading it to the test device?

Replies are listed 'Best First'.
Re^2: LWP::UserAgent post, file upload corruption.
by FeistyLemur (Novice) on Feb 04, 2020 at 15:47 UTC

    The file is good, I use this updater on several machines as well as my own which all have the same issue, I am able to upload and even upgrade to this exact file using the web interface of the device in a browser without error. The device checksums the file before going ahead with a firmware flash, so it's definitely not corrupt on the disk.

    Using wireshark the post never even appears (it does when using the web ui, and did using this script before), all I get is a 200 ok after attempting the post, with the error message that states "connection was interrupted, or the file is corrupt. As per the other reply I will try the LWP debug and see how that goes for finding more info."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11112349]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2020-05-31 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (174 votes). Check out past polls.

    Notices?