This is more of error checking than anything else. I inadvertently used methods::GET with body_data. I really wanted to use methods::POST.
test:
```
//
//this one will generate exception
//
http_client client(U("http://localhost"));
client.request(methods::GET, U("/"), U("blah=data")).then([=](http_response response)
{
wcout<<response.to_string();
}).wait();
//
//this one will work
//
http_client client(U("http://localhost"));
client.request(methods::POST, U("/"), U("blah=data")).then([=](http_response response)
{
wcout<<response.to_string();
}).wait();
```
Comments: Hello My name is Binta, i read about you in this site and i decide to contact you for friendship hopeing that you will accept my request,if you accept my request ,please reply to my email address (bintaweah59@live.com) or send me your email so that i will send you my photo and more about me, i believe we can make good friends,let distance not be a barrier but lets love connect,because love is a bridge connect far distance to be close from Binta
test:
```
//
//this one will generate exception
//
http_client client(U("http://localhost"));
client.request(methods::GET, U("/"), U("blah=data")).then([=](http_response response)
{
wcout<<response.to_string();
}).wait();
//
//this one will work
//
http_client client(U("http://localhost"));
client.request(methods::POST, U("/"), U("blah=data")).then([=](http_response response)
{
wcout<<response.to_string();
}).wait();
```
Comments: Hello My name is Binta, i read about you in this site and i decide to contact you for friendship hopeing that you will accept my request,if you accept my request ,please reply to my email address (bintaweah59@live.com) or send me your email so that i will send you my photo and more about me, i believe we can make good friends,let distance not be a barrier but lets love connect,because love is a bridge connect far distance to be close from Binta