請問點用php..get到呢個網站既內容?

http://www.successbullion.com/success/tc/index.html

港金 價錢

用php get..

呢個網港金果part 用iframe.. 有苶ching教下點get到? thx

curl

TOP

直接拎佢個AJAX result得唔得

TOP

直接拎佢個AJAX result得唔得
max918 發表於 2011-5-24 04:01



    ajax­­要個js同個data係same domain先得

TOP

Request URL:http://www3.m-finance.net:9090/s ... ashPagePriceBox.dwr
Request Method:POST
Status Code:200 OK
Request Headers
Accept:*/*
Accept-Charset:Big5-HKSCS,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-TW,en-US;q=0.8,en;q=0.6
Connection:keep-alive
Content-Length:3290
Content-Type:text/plain
Cookie:JSESSIONID=F29871ECD68202D30A1C079E866B8234
Host:www3.m-finance.net:9090
Origin:http://www3.m-finance.net:9090
Referer:http://www3.m-finance.net:9090/s ... 10&locale=zh_TW
User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
Request Payload
callCount=1
windowName=
c0-scriptName=Reflsh
c0-methodName=ReflashPagePriceBox
c0-id=0
c0-e2=string:LLG
c0-e3=string:1516.7
c0-e4=string:1518.0
c0-e5=string:1512.9
c0-e6=string:1516.2
c0-e7=string:1516.2
c0-e1=Object_Object:{curr:reference:c0-e2, bid:reference:c0-e3, highBid:reference:c0-e4, lowBid:reference:c0-e5, open:reference:c0-e6, close:reference:c0-e7}
c0-e9=string:HKG
c0-e10=string:14031
c0-e11=string:14044
c0-e12=string:13999
c0-e13=string:14026
c0-e14=string:14026
c0-e8=Object_Object:{curr:reference:c0-e9, bid:reference:c0-e10, highBid:reference:c0-e11, lowBid:reference:c0-e12, open:reference:c0-e13, close:reference:c0-e14}
c0-e16=string:LLS
c0-e17=string:35.18
c0-e18=string:35.28
c0-e19=string:34.91
c0-e20=string:35.11
c0-e21=string:35.11
c0-e15=Object_Object:{curr:reference:c0-e16, bid:reference:c0-e17, highBid:reference:c0-e18, lowBid:reference:c0-e19, open:reference:c0-e20, close:reference:c0-e21}
c0-e23=string:EUR
c0-e24=string:1.4043
c0-e25=string:1.4057
c0-e26=string:1.4000
c0-e27=string:1.4057
c0-e28=string:1.4057
c0-e22=Object_Object:{curr:reference:c0-e23, bid:reference:c0-e24, highBid:reference:c0-e25, lowBid:reference:c0-e26, open:reference:c0-e27, close:reference:c0-e28}
c0-e30=string:JPY
c0-e31=string:81.81
c0-e32=string:82.05
c0-e33=string:81.76
c0-e34=string:81.91
c0-e35=string:81.91
c0-e29=Object_Object:{curr:reference:c0-e30, bid:reference:c0-e31, highBid:reference:c0-e32, lowBid:reference:c0-e33, open:reference:c0-e34, close:reference:c0-e35}
c0-e37=string:GBP
c0-e38=string:1.6100
c0-e39=string:1.6127
c0-e40=string:1.6057
c0-e41=string:1.6116
c0-e42=string:1.6116
c0-e36=Object_Object:{curr:reference:c0-e37, bid:reference:c0-e38, highBid:reference:c0-e39, lowBid:reference:c0-e40, open:reference:c0-e41, close:reference:c0-e42}
c0-e44=string:CHF
c0-e45=string:0.8849
c0-e46=string:0.8889
c0-e47=string:0.8823
c0-e48=string:0.8824
c0-e49=string:0.8824
c0-e43=Object_Object:{curr:reference:c0-e44, bid:reference:c0-e45, highBid:reference:c0-e46, lowBid:reference:c0-e47, open:reference:c0-e48, close:reference:c0-e49}
c0-e51=string:AUD
c0-e52=string:1.0521
c0-e53=string:1.0536
c0-e54=string:1.0478
c0-e55=string:1.0523
c0-e56=string:1.0523
c0-e50=Object_Object:{curr:reference:c0-e51, bid:reference:c0-e52, highBid:reference:c0-e53, lowBid:reference:c0-e54, open:reference:c0-e55, close:reference:c0-e56}
c0-e58=string:NZD
c0-e59=string:0.7922
c0-e60=string:0.7925
c0-e61=string:0.7879
c0-e62=string:0.7914
c0-e63=string:0.7914
c0-e57=Object_Object:{curr:reference:c0-e58, bid:reference:c0-e59, highBid:reference:c0-e60, lowBid:reference:c0-e61, open:reference:c0-e62, close:reference:c0-e63}
c0-e65=string:CAD
c0-e66=string:0.9764
c0-e67=string:0.9790
c0-e68=string:0.9760
c0-e69=string:0.9766
c0-e70=string:0.9766
c0-e64=Object_Object:{curr:reference:c0-e65, bid:reference:c0-e66, highBid:reference:c0-e67, lowBid:reference:c0-e68, open:reference:c0-e69, close:reference:c0-e70}
c0-param0=array:[reference:c0-e1,reference:c0-e8,reference:c0-e15,reference:c0-e22,reference:c0-e29,reference:c0-e36,reference:c0-e43,reference:c0-e50,reference:c0-e57,reference:c0-e64]
batchId=16
page=%2Fsuccess%2FajaxPrice.jsp%3Ftype%3D10%26locale%3Dzh_TW
httpSessionId=F29871ECD68202D30A1C079E866B8234
scriptSessionId=7A62E3C3E266CEE909971307A0C4785D
Response Headers
Content-Length:662
Content-Type:text/javascript;charset=utf-8
Date:Tue, 24 May 2011 03:03:48 GMT
Server:Apache-Coyote/1.1


//#DWR-INSERT

//#DWR-REPLY

dwr.engine.remote.handleCallback("16","0",[{id:"img_updown_EUR",price:"sc/images/down.gif"},{id:"price_buysell_EUR",price:"1.4042/47"},{id:"img_updown_GBP",price:"sc/images/down.gif"},{id:"price_buysell_GBP",price:"1.6100/05"},{id:"price_yesterday_GBP",price:"1.6116"},{id:"img_updown_CHF",price:"sc/images/up.gif"},{id:"price_buysell_CHF",price:"0.8851/56"},{id:"img_updown_AUD",price:"sc/images/up.gif"},{id:"price_buysell_AUD",price:"1.0522/27"},{id:"img_updown_NZD",price:"sc/images/up.gif"},{id:"price_buysell_NZD",price:"0.7923/28"},{id:"img_updown_CAD",price:"sc/images/up.gif"},{id:"price_buysell_CAD",price:"0.9765/70"}]);

TOP

ajax­­要個js同個data係same domain先得
tonyli1212 發表於 2011-5-24 10:21



    或許 jsonp 可以

TOP

snoopy

TOP

Request URL:
Request Method:POST
Status Code:200 OK
Request Headers
Accept:*/*
Accept-Charset:Big5-H ...
lamsoft 發表於 2011-5-24 11:04

呢段野同我點get到有咩關係?

TOP

樓上ching 可唔可以幫幫手.. 我都知function做到~
就係唔知點get..  我用 simplehtmldom 就get到..

TOP

呢段野同我點get到有咩關係?
Poissons 發表於 2011-5-24 12:13



    似乎係成個 response 同 request header

TOP