CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: HTTP request

  1. #1
    Join Date
    Apr 2002
    Posts
    35

    Question 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

  2. #2
    Join Date
    Apr 2002
    Location
    United Kingdom
    Posts
    310
    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,

  3. #3
    Join Date
    Apr 2002
    Posts
    35
    Thanks for reply

    Can I have a small example.
    It will help me. As I work on C and rarely use VC++

  4. #4
    Join Date
    Apr 2002
    Location
    United Kingdom
    Posts
    310
    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...

  5. #5
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured