Send HTTP request from VC ++ file

I am trying to send an HTTP request with the content of a file set as the body of an HTTP request and I want to receive a response from the server using VC ++.

Any help is appreciated. Thank.

I think it is not entirely clear what I wanted to do, or I misunderstood the answers. Neways what I want to do is one of my webservices is accepting local file data as the body of the HTTP request sent to it. I want to call this service and send the content of the txt file as the body of the HTTP request. In response, I receive a response from the service that I want to receive in a string variable.

Thank.

+1


source to share


2 answers


You can use the cURL library . There is also a similar topic Programmatically Reading a Webpage



+2


source


You can always use WinInet. Check out the docs here:

http://msdn.microsoft.com/en-us/library/aa385331(VS.85).aspx



NTN

Colby Africa

+1


source







All Articles