GET /search/en/result.jsf?currentNavigationRow=3&prevCurrentNavigationRow=2&query=DP: 200101%20&office=%20(OF:wo)&sortOption=Pub%20Date%20Desc&prevFilter=&maxRec=6823&viewOption=All HTTP/1.1
Accept: application/x-shockwave-flash, image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/x-ms-xbap, application/x-ms-application, */*
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Host: patentscope.wipo.int
Connection: Keep-Alive
Cookie: JSESSIONID=4B8D12B22CF3A3AF7D81C89CC88407A2.wapp1; __utma=154456249.1060241838.1372658395.1372726208.1372734972.4; __utmz=154456249.1372658395.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=99021848.1995667370.1372726454.1372726454.1372726454.1; __utmz=99021848.1372726454.1.1.utmcsr=patentscope.wipo.int|utmccn=(referral)|utmcmd=referral|utmcct=/search/zh/result.jsf如何通过网址获得 以上的这些信息 主要是Cookie 最好是给个小例子 谢谢 了ieHTTPHeaders 

解决方案 »

  1.   

    function setCookie(name, value, domain) {
     document.cookie = "[" + name + "]=" + escape(value) +";path=/"+ ((domain)?";domain="+domain:"") // + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) +";secure"
    }//:$//读取cookie值
    function getCookie(Name) {
              var search = "[" + Name + "]="
              if (document.cookie.length > 0) { // if there are any cookies
                        offset = document.cookie.indexOf(search) 
                        if (offset != -1) { // if cookie exists 
                                  offset += search.length 
                                  // set index of beginning of value
                                  end = document.cookie.indexOf(";", offset) 
                                  // set index of end of cookie value
                                  if (end == -1) 
                                            end = document.cookie.length
                                  return unescape(document.cookie.substring(offset, end))
                        } 
              }
    }//:$//删除cookie值
    function deleteCookie(name,path,domain){
     if(getCookie(name)) document.cookie = "["+ name +"]="+ ((path)?";path="+path:"") + ((domain)?";domain="+domain:"") //+";expires=Thu,01-Jan-70 00:00:01 GMT"
    }
      

  2.   

    我想在客户端使用 我做的是客户端开发  桌面工具
    我应该如何加进去呢 ? 就是JAVA SE  。