aa04
asked on
Help Need on CInternetSeccion
I'm starting to learn visual C++. I need to build a client which will connect to a server and
send a cgi text. The server will convert it to a wave format and send it back.
Could I use CHhttpConnection HTTP_VERB_POST to OpenRequest and then send a a
pointer this points to the string to be converted.
Can I execute this file form dos command. If so How?
CInternetSession Connection;
CHttpConnection* pHttpConnection = NULL;
CHttpFile* pFile = NULL;
try
{
pHttpConnection = Connection.GetHttpConnecti on("www.wrox.com");
pFile = pHttpConnection->OpenReque st(CHttpCo nnection:: HTTP_VERB_ GET,"/");
pFile->SendRequest();
}
catch (CInternetException* pEx)
{
pEx->ReportError();
pEx->Delete();
Thanks for your time.
send a cgi text. The server will convert it to a wave format and send it back.
Could I use CHhttpConnection HTTP_VERB_POST to OpenRequest and then send a a
pointer this points to the string to be converted.
Can I execute this file form dos command. If so How?
CInternetSession Connection;
CHttpConnection* pHttpConnection = NULL;
CHttpFile* pFile = NULL;
try
{
pHttpConnection = Connection.GetHttpConnecti
pFile = pHttpConnection->OpenReque
pFile->SendRequest();
}
catch (CInternetException* pEx)
{
pEx->ReportError();
pEx->Delete();
Thanks for your time.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.