Hi navysparks,
Glad you figured it out. Yes that assert was checking to see if the stream body was valid.
I can't quite tell exactly what type HTTPBody is, but you shouldn't need to explicitly sent the content length header here with calling set_body(...) it will automatically be take care of. You could collapse all those lines into:
Glad you figured it out. Yes that assert was checking to see if the stream body was valid.
I can't quite tell exactly what type HTTPBody is, but you shouldn't need to explicitly sent the content length header here with calling set_body(...) it will automatically be take care of. You could collapse all those lines into:
req.set_body(HTTPBody);
Steve