• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hopestar86
V2EX  ›  程序员

帮忙将下面这个简单的 php 改为 asp 语言的,谢谢

  •  
  •   hopestar86 · Aug 22, 2014 · 4249 views
    This topic created in 4316 days ago, the information mentioned may be changed or developed.
    没学过asp,做回伸手党^_^

    工作很简单,就是凭借URL,然后远程获取内容,谢谢


    <?php
    error_reporting(0);

    $base_url='http://a.com/';
    $_GET['from']=$_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
    unset($_GET['m'],$_GET['c'],$_GET['a']);

    $api_url=$base_url.'?'.http_build_query($_GET);

    $ch=curl_init($api_url);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
    curl_setopt($ch,CURLOPT_HEADER,false);
    $resp=curl_exec($ch);
    curl_close($ch);

    echo $resp;
    6 replies    2014-08-23 13:37:49 +08:00
    jprovim
        1
    jprovim  
       Aug 22, 2014
    沒抖過機靈, 坐回沙發.

    GUN
    66beta
        2
    66beta  
       Aug 22, 2014
    qq529633582
        3
    qq529633582  
       Aug 22, 2014
    同问这个年代了怎么还有ASP
    Automan
        4
    Automan  
       Aug 22, 2014
    你得用xmlhttp..
    hopestar86
        5
    hopestar86  
    OP
       Aug 22, 2014
    @66beta
    @qq529633582
    朋友需要
    maxsec
        6
    maxsec  
       Aug 23, 2014
    已block
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
    ♥ Do have faith in what you're doing.