-
HTTP request
Hi,
I have written a code in perl. Which send a http request to webserver and fetch the html pages back. This is done by using LWP agents in perl.
I want similar kind of implementation using C/C++/VC++
Or
Is there a way by which I can incoperate my perl code in VC++ .
this is urgent.
Please help!!!!
Thanks
-
take a look at using CInternetSession class, I wrote the same code you are asking using this, and no you cannot use perl in cpp unless you call using the 'system' command, you will have to convert what your perl script does into c++ I am afraid.
Regards,
-
Thanks for reply
Can I have a small example.
It will help me. As I work on C and rarely use VC++:(
-
The code is at home I am currently working away will be able to sort it out for you over the weekend,
the code will look daunting so I would suggest reading up on CInternetSession class.
or to use the system method
system( "perl.prl -params" ); // << replace between quotes what you would type in the command line.
Regards...
-