forked fromglynos/cpp-netlib
- Notifications
You must be signed in to change notification settings - Fork425
Closed

Description
Hello,
When I do
curl -d "q=%3A&version=2.2&start=0&rows=10&indent=on"http://192.168.0.202:8080/solr/lg_fr_alpha4/select/?
the ouput XML stream is fine. When I use wireshark I can see in the middle of the XML stream, some size values once in a while:
<int name="warranty">-1</int><int
2000
name="in_stock_format">0
breaking the XML. I guess that's part of the HTTP Post protocol. When I use:
req << header("Content-Length", content_length);req << header("Content-Type", content_type);req << body(solrQuery);http::client client;http::client::response response;response = client.post(req);string myString = body(response);
The "2000" size values appears also in "myString". What is the right way to use http::client or response such that this size values disappear from myString ??? Thank you.
Metadata
Metadata
Assignees
Labels
No labels