如何在客户端用BCB与网站上的PHP进行通讯,Bitcomet就是提交网页来获取服务端上的用户IP的,这原理是什么?有没有相关的代码或者范例?谢谢.

解决方案 »

  1.   

    我只想做简单的提交,就是提交用户名与密码之类的,能否给个简单的范例,还有PHP端的,谢谢了
      

  2.   

    看看Hypertext Transfer Protocol -- HTTP/1.0就知道
    发送Mothod的Get到server就可以了,自己看看吧The Method token indicates the method to be performed on the resource
       identified by the Request-URI. The method is case-sensitive.       Method         = "GET"                    ; Section 8.1
                          | "HEAD"                   ; Section 8.2
                          | "POST"                   ; Section 8.3
                          | extension-method       extension-method = token   The list of methods acceptable by a specific resource can change
       dynamically; the client is notified through the return code of the
       response if a method is not allowed on a resource. Servers should
       return the status code 501 (not implemented) if the method is
       unrecognized or not implemented.   The methods commonly used by HTTP/1.0 applications are fully defined
       in Section 8.