Hey Steve,
https://api.prosper.com/Invest
I contacted their support department to see if they had any other resources like sample code, etc. and they said that was all there was.
"POST api/Invest?listingId=2463757&amount=25.00 HTTP/1.1\r\nAuthorization: Basic EncodedStringHere\r\nContent-Type: application/x-www-form-urlencoded\r\nUser-Agent: cpprestsdk/2.4.0\r\n\r\n"
The only thing that looks suspicious to me is the "HTTP/1.1". Could that be getting included with the definition for amount?
Thanks once again for all of the great help.
Gary
I didn't look over the Prosper API so I would double check there.Unfortunately, the documentation for the Investing portion of the API consists of only one page:
https://api.prosper.com/Invest
I contacted their support department to see if they had any other resources like sample code, etc. and they said that was all there was.
Are you not getting any more information in the HTTP response body about what the actual problem is?The only additional information provided in the response body is "Invalid Arguments".
Other options you can try to print the http_request class out to a string...Good idea. Here is what it produced:
"POST api/Invest?listingId=2463757&amount=25.00 HTTP/1.1\r\nAuthorization: Basic EncodedStringHere\r\nContent-Type: application/x-www-form-urlencoded\r\nUser-Agent: cpprestsdk/2.4.0\r\n\r\n"
The only thing that looks suspicious to me is the "HTTP/1.1". Could that be getting included with the definition for amount?
You also could use an HTTP debugging proxy/tool to see the request as it goes out across the wire.That may be my next step. Ideally, I would like to use such a tool to see the request that works from the Chrome Console and compare it with what is being sent from my program.
Thanks once again for all of the great help.
Gary