curl kullanarak giriş

1 Cevap php

Css kıvırmak kullanarak ve javascript dosyaları bu üstesinden nasıl localhost bağlantı olup giriş yaptıktan sonra .....

I have logged into external website using curl curl_setopt($ch, CURLOPT_URL,"https://externalwebsite.com"); after getting redirected to the external website the links in the external website are showing the localhost path for example the javascript files are linking to the above path is linked to src="http://localhost/curlbasic/js/dojotoolkit/dojo/dojo.js?12.01_144204"

1 Cevap

Soru ayrıntılarını okuduktan sonra, bu nasıl görünmez ...

Düzenlemenizi cevap. Ben kurmaya çalışan konum web göreceli bir URL kullanır düşünüyorum. Yani, iyi URL'leri almak için mutlak yollarını tüm göreli yolunu değiştirmek gerekir.

Yani, örneğin, değiştirmek gerekecek

src = "js / dojotoolkit / dojo / dojo.js? 12.01_144204"

tarafından

src = "https://externalwebsite.com/js/dojotoolkit/dojo/dojo.js?12.01_144204"