Set Cookie for currency to CHF.

main
Giò 2024-07-05 16:46:38 +02:00
parent 1b59017694
commit 3a0c383a5d
1 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,9 @@ class Edomizil{
$result['offer'] = $offer->body(); $result['offer'] = $offer->body();
// scrape price of property // scrape price of property
$price = Http::get('https://www.e-domizil.ch/booking/checkout/priceDetails/'.$property->property_platform_id); $price = Http::withHeaders([
'Cookie' => 'c=CHF',
])->get('https://www.e-domizil.ch/booking/checkout/priceDetails/'.$property->property_platform_id);
if($price->successful()){ if($price->successful()){