[Prev][Next][Index][Thread]

Post from memory bug




HTUploadAnchor() has the statement

    request->reload = HT_CACHE_REFRESH;

which means if you post to the same destination twice, the library will
most likely pull it out of the cache.  This is fine if you're posting the
same data but if you're not you're in trouble.  HTUpload_callback is not
being called.                HTUpload_callback is the
request->PostCallback.  It's normally called by the following statement in
HTLoadHTTP()

status = request->PostCallback ?
                    request->PostCallback(request, request->input_stream) :


What's the best way to deal with this?  I just changed the line mentioned
above to force the reload.

Kevin Connor