ES3Cloud.AddPostField() expected behaviour?
Posted: Thu Feb 23, 2023 2:56 pm
Hey, just a quick question. Is an Instance of ES3Cloud expected to be re-used or set up fresh every time we use it?
I sent some additional Data to the php script via .AddPostField and was debugging on the apache side when i noticed the same data being sent over and over again on subsequent calls (even when calling cloud.AddPostField("sameKey","freshData") before transmitting. Upon inspection i found that there were multiple formData entries (same key, different values) piling up in the ES3Cloud instance. The php-script would always just retreive the first one of these, which would always be the first one ever added.
Is this expected behaviour? Would it make sense to add some SetPostField() method to ES3Cloud to overwrite the data? Or make overwriting the default behaviour? Or am i guilty of misconduct and should just create a fresh Instance of ES3Cloud before every call to the server? (Which is my current Solution, but i wanted to ask how it was intended to be used to avoid nasty overhead or stuff like that)
Thx as always for your support and replies! cheers
I sent some additional Data to the php script via .AddPostField and was debugging on the apache side when i noticed the same data being sent over and over again on subsequent calls (even when calling cloud.AddPostField("sameKey","freshData") before transmitting. Upon inspection i found that there were multiple formData entries (same key, different values) piling up in the ES3Cloud instance. The php-script would always just retreive the first one of these, which would always be the first one ever added.
Is this expected behaviour? Would it make sense to add some SetPostField() method to ES3Cloud to overwrite the data? Or make overwriting the default behaviour? Or am i guilty of misconduct and should just create a fresh Instance of ES3Cloud before every call to the server? (Which is my current Solution, but i wanted to ask how it was intended to be used to avoid nasty overhead or stuff like that)
Thx as always for your support and replies! cheers