|
-
April 2nd, 2004, 04:56 AM
#1
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
-
April 2nd, 2004, 05:02 AM
#2
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,
-
April 2nd, 2004, 05:51 AM
#3
Thanks for reply
Can I have a small example.
It will help me. As I work on C and rarely use VC++
-
April 2nd, 2004, 06:11 AM
#4
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...
-
April 2nd, 2004, 06:34 AM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|