migrating from php to asp.netp

Last post 04-16-2009 1:17 AM by suneesh. 2 replies.

Sort Posts:

  • migrating from php to asp.netp

    04-16-2009, 12:47 AM
    • Member
      point Member
    • suneesh
    • Member since 04-16-2009, 12:41 AM
    • Posts 2

     How can convert bellow curl function in php to asp.net .

    $this->debug($url);
            $ch = curl_init($url);
            curl_setopt($ch, CURLOPT_FAILONERROR, true);
            curl_setopt($ch, CURLOPT_USERAGENT, $this->__expected_useragent);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
            curl_setopt($ch, CURLOPT_TIMEOUT, 90);
            $page = curl_exec($ch);
            if (!curl_errno($ch)) {
                $this->debug($page);
                curl_close($ch);
            } else {
                $this->debug(curl_error($ch));
                $page = false;
            }
            return $page;

    Thanks

  • Re: migrating from ohp to asp.net

    04-16-2009, 1:06 AM
    • Participant
      1,625 point Participant
    • asifchouhan
    • Member since 02-13-2009, 10:04 AM
    • India
    • Posts 295
    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: migrating from php to asp.net

    04-16-2009, 1:17 AM
    • Member
      point Member
    • suneesh
    • Member since 04-16-2009, 12:41 AM
    • Posts 2

     Thanks for your replay.

      Actually i have used  PHP to Asp.Net Migration assistant tool ,the problem is the curl function.i couldnot find any corresponding function in asp.net  to this curl function in Php.Is there any function corresponding to this curl?.This is the only one problem i have faced.

     

    Thanks

    Suneesh.T

Page 1 of 1 (3 items)