0
有人能幫我把這個curl命令行請求轉換成PHP中的等價物嗎?非常感謝你提前!用PHP寫一個CURL請求
curl 'https://utas.fut.ea.com/ut/game/fifa14/trade?tradeIds=3266885522' -H 'Cookie: CEM-session=2s6atve4hl9rdqlbleq8bhvgq5; s_sivo=GB%3AEACOM%3ANONE; s_ria=flash%2011%7Csilverlight%205.1; utag_main=_st:1380330504726$ses_id:1380328780078%3Bexp-session; __utma=103303007.320543511.1380328721.1380328721.1380328721.1; __utmc=103303007; __utmz=103303007.1380328721.1.1.utmcsr=easports.com|utmccn=(referral)|utmcmd=referral|utmcct=/uk/fifa/football-club; s_ppv=100; s_cc=true; s_nr1=1380328918707-NEW; s_sq=%5B%5BB%5D%5D' -H 'Origin: http://www.easports.com' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: utas.fut.ea.com' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-UT-SID: 7b8c91aa-083a-4c57-9176-21b53228bcbd' -H 'X-UT-PHISHING-TOKEN: 7869050555705646289' -H 'Referer: http://www.easports.com/iframe/fut/bundles/futweb/web/flash/FifaUltimateTeam.swf' -H 'X-UT-Embed-Error: true' -H 'Connection: keep-alive' -H 'X-HTTP-Method-Override: GET' --data-binary ' ' --compressed
我嘗試的代碼:http://pastebin.com/86VMFkK7
的「VE你所做的任何通行證嗎? –
從這裏開始:http://www.php.net/manual/en/function.curl-setopt.php –
是的,我試過了,但是我一直收到來自請求的「錯誤」響應。 –