*Nevermind, DW Service only allows silent INSTALL. DW Service supports silent mode as well, so, thinking about going with a remote desktop solution sch as DW Service. SSH requires the username and password of the device's account. I need the ability to browse through the files and download/upload them. I'm conflicted over some kind of SSH client such as PuTTY or a full-fledged remote control software to include with the program. *>Free and Open Source remote control software. was banging my head over why i couldn't create a new agent. they could've made that clear with a textbox hint. group name is to be left unfilled for the first agent created since there's no groups in the beginning. *DW Service new agent creation process is simple but misleading. web searches on constructing raw HTTP request for file upload are mostly useless or very meagre/scattered. which fields are required for file upload? which headers? what's "content-disposition"? David Gourley's "HTTP: The Definitive Guide" talks about it in brief on page 326 comes close but it's not convincing. i really was expecting more clarity on the topic. anyway, I just gave up on trying to find a good complete HTTP resource for developers and just emulated PostMan's HTTP POST request. scattered information here and there only add to the confusion and most SO threads just tell the OP's to STFU and use available HTTP libraries for the language they're using to upload files. RFC2616 has only a passing mention of Content-Type: multipart/form-data for uploading files and the required fields in the HTTP request body between boundaries. some of the headers I see in PostMan console/google chrome DevTools seemingly have no explanation. but no resource seems complete on the internet, not even the RFC2616. i've been searching for the "proper" way to upload files via HTTP POST for the better part of the day. *HTTP requests are best learnt by emulating browsers and other HTTP clients such as PostMan, I've come to learn. case in point, reading binary file's content into a string buffer. i did a lot of things without actually understanding how it worked, learning by seeing other people's code. I sure hope it doesn't always hold me back. *a lot of my time is being spent revisiting how I coded things in VB6 back in the day. maybe is it? Got that from a StackOverflow answer maybe there wasn't just one such great resource. i can't seem to find that exact resource readily now. i don't know if i'm totally correct but IIRC, there was a website that did an excellent job of completely describing the totality of HTTP to a beginner. *resources that were easily available a few years ago on some topics(like HTTP mechanism) seem to be lost to the vastness of the internet now. *nightmare to find where a method has been implemented for projects involving multiple include file *variables going out of scope when creating threads from procedures. had to fiddle around with it to figure out what exactly it did. *good purebasic guide : A lot of google searches point there single line of code: UsePNGEncoder() adds another 220KB the network library functions single-handedly add 200KB. *output file size quickly balloons even when GUI api, the likes of OpenWindow() and such, haven't been used. it makes room for a total of one element in purebasic. maybe the procedure didn't add any element. ArraySize() will return 0 regardless of the return value of the procedure. the first element created during dim'ing. but if the array is 0-indexed, there will always be that a(0) i.e. but you don't know what the final size of the array is going to be! that's what a dynamic array is for! if it is something returned from a procedure, you will want to check if there's any element in the array. it must be dim a(0) or some other positive number instead of 0. to declare a dynamic array, you must specify a size (unlike in vb6). *there's no way AFAIK to check if a dynamic array is empty in purebasic if you start from the index 0. seems like i've forgotten how looping through an array worked in VB6, lol. I guess this is in conforming with QBASIC/VB6 syntax. ArraySize of 0 would mean there's one element in an array. *ArraySize() gives the size of the array AS SPECIFIED WITH DIM OR REDIM. shows the language is geared towards not doing that. *confusing syntax, especially with EnableExplicit on. *messy array/pointer/list returning from procedures. documentation is good and beginner-friendly most of the time though.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |