How to convert PHP function into ASP.NET

Last post 07-04-2008 6:21 AM by Zhao Ji Ma - MSFT. 1 replies.

Sort Posts:

  • How to convert PHP function into ASP.NET

    07-02-2008, 4:43 AM
    • Loading...
    • Sunny Kim
    • Joined on 07-02-2008, 8:32 AM
    • Posts 1

    It's the very first time for me to be here.

    But I think(be sure) I can get right answer here.
     

     How to imitiate PHP function curl_XXX with ASP.NET.

    I'm converting some project of php into ASP.NET.

    And I've found some problem as following.

            $ch = curl_init($url);
            curl_setopt($ch, CURLOPT_HEADER, 0);
            curl_setopt($ch, CURLOPT_POST, 1);
            curl_setopt($ch, CURLOPT_POSTFIELDS, urlstring + '&FileName=' + salesId);
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            $data = curl_exec($ch);
            curl_close($ch);

    So what I want to know is how to operate web page in background with ASP.NET.

    Please help. This is urgent.

    Hope your help. 

    Thank you all. 

  • Re: How to convert PHP function into ASP.NET

    07-04-2008, 6:21 AM
    Answer

    Hi,

    I'm not very show, may be you are looking HttpWebRequest class.

     

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter