www.webdeveloper.com
Results 1 to 2 of 2

Thread: CURL object = ??(in ASP??)

  1. #1
    Join Date
    Jul 2006
    Posts
    6

    CURL object = ??(in ASP??)

    hi. i wonder as if `CURL object in PHP` corresponds in ASP.

    as if you want to see example.



    PHP Code:
    function ulkeBul($ip) { 
    $ch curl_init(); 
    curl_setopt($chCURLOPT_URL"http://ip-to-country.webhosting.info/node/view/36"); 
    curl_setopt($chCURLOPT_POST1); 
    curl_setopt($chCURLOPT_RETURNTRANSFER1); 
    curl_setopt($chCURLOPT_POSTFIELDS'ip_address='.$ip.''); 
    $kaynak curl_exec ($ch); 
    curl_close ($ch); 
    preg_match("'belongs to <b>(.*?)</b>'s"$kaynak $donen); 
    return 
    $donen["1"]; 


    echo 
    ulkeBul($_SERVER["REMOTE_ADDR"]); 

    i want to implement that example. As if someone can help me..

  2. #2
    Ubik's Avatar
    Ubik is offline &lt;%= &quot;New Meja Hor&quot; %&gt;
    Join Date
    Nov 2005
    Location
    Earth
    Posts
    361
    Does this help at all?

    PHP Code:
    Function GetPage(strURL)
        
    Dim objXMLHTTPxml
        Set xml 
    Server.CreateObject ("Microsoft.XMLHTTP")
        
    'Or if this doesn't work then try :
        
    'Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
        xml.Open "GET", strURL, false
        xml.Send
        GetPage = xml.ResponseText
        Set xml = Nothing
    End Function 
    Returns a string containing the URL 'page'.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles