02-06-2024 11:57 AM - edited 02-06-2024 11:59 AM
Hello, I need help figuring out how to translate clicking of a button "Restore configuration" in web browser to LabVIEW syntax. This is what source code looks like and what it looks like in Chrome - I need to use POST method with content type "multipart/form-data"
I was following this tutorial by LabVIEW to upload that file, but it doesn't look like I got syntax correctly, I get error 363514, my code is attached.
Any suggestions where to continue looking? I've tried changing the header by using Accept to match that of Chrome, but I keep getting the same error. I know that JSON file definitely has correct structure and I have not issues using LabVIEW to send GET commands to the web page to download a file, force log out, etc., I only struggle with implementing this multipost button.
Many thanks
02-06-2024 12:58 PM
I'm sorry I can't help but very interested. I have test station LabVIEW executables and one at a time each station started giving this error after previously working. Nothing I could do worked and I ended up writing a small c# app to do the post instead of LabVIEW. The post vi is locked and the error message is useless! I am watching with interest here.
02-06-2024 01:03 PM
For a similar file upload using POST Multipart, I did this,
02-07-2024 04:14 PM
Yes, the example written by NI I've referenced shows that if the form is written with regular HTML code, it would would work, but my button seems to be a function or a class of AJAX library, so I need to apply some logic glue and this is what I can't figure out how to do.