看站用的什么语言,一般asp.net可以这样传www.123.com/login.aspx?name=xxxxx&pwd=xxxxxx

解决方案 »

  1.   

    #import<msxml.dll>
    几个主要的函数如下,具体用法去MSDN查查就知道啦,编个测试程序,一会儿你就明白啦!
    是我工程里边的,嘻嘻!1.CACQHttpSession::m_session = new CACQHttpSession(NULL, dwAccessType);
    2.if (!AfxParseURL(pszURL, dwServiceType, CACQHttpSession::strServerName, strObject, CACQHttpSession::nPort) ||
    dwServiceType != INTERNET_SERVICE_HTTP);
    3.pServer = CACQHttpSession::m_session->GetHttpConnection(CACQHttpSession::strServerName, 0, CACQHttpSession::nPort, NULL, NULL);
    4.pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,
    strObject, NULL, 1, NULL, NULL, dwHttpRequestFlags);
      pFile->AddRequestHeaders(szHeaders);
      pFile->SendRequest();
      TCHAR szPlain[1024] = "";      // 1024对于登录部分的XML响应内容应该足够
      TCHAR szBuffer[1024] = "";
    5.pFile->SetReadBufferSize(4096);  // Add this line
    6.while (pFile->ReadString(szBuffer, 1023))
      {
        strcat(szPlain, szBuffer);
      }
      

  2.   

    http://topic.csdn.net/t/20060719/14/4890598.html
    参考此帖,有代码。
      

  3.   

    差点儿忘了,针对你的工程,如果不是要求特别高的话
    OpenURL()函数就足够啦,看看MSDN的帮助,很简单的。
    祝你好运啊!
      

  4.   

    SOAP那个不好吧!
    包装太多啦,不纯啦^-^
    人家要的可是“纯洁”的代码啊!
      

  5.   

    VS2005集成了ATLServer库,用向导生成webservice工程.
      

  6.   

    我最近也遇到VC调用WebService的问题,请参考http://blog.pfan.cn/xman/42117.html
    希望对你有帮助~
      

  7.   

    我最近也遇到VC调用WebService的问题,请参考http://blog.pfan.cn/xman/42117.html 
      

  8.   

    在 VS2008 下使用 WebService
    http://blog.csdn.net/DavidHsing/archive/2009/06/17/4276366.aspx