String/Array auflösen bei Webabfrage

jurs:
Zwischen Pointern auf String-Objekte und Pointern auf Char-Arrays gibt es keine Zuweisungskompatibilität.

Doch, gibt es. Das zeigt ein Blick in die WString.h :

// The string class
class String
{
        // use a function pointer to allow for "if (s)" without the
        // complications of an operator bool(). for more information, see:
        // http://www.artima.com/cppsource/safebool.html
        typedef void (String::*StringIfHelperType)() const;
        void StringIfHelper() const {}

public:
        // constructors
        // creates a copy of the initial value.
        // if the initial value is null or invalid, or if memory allocation
        // fails, the string will be marked as invalid (i.e. "if (s)" will
        // be false).
        String(const char *cstr = "");
        ...

Hier die letzte Zeile. Das Problem ist aber, das dieser Konstruktor immer eine komplette Kopie des übergebenen Strings macht. Das frisst zusätzlich Speicher, da die ENC28J60 Lib schon 700 Bytes Buffer verwendet. Dazu kommt dann die Kopie von einem großen Teil des Buffers.