curl - Reading Data in your PHP app from HTTPS website -
i want read data https://partner.bosch.de/ew/ro/ , have search products here. client having login details login, enters id's in form , on submit gives data here in excel sheet. afterwards using excel sheet data entry operator has enter data on own store.
what want read data using curl or rest api own website. above mentioned website not offering api.
you have use curl found more details here : http://php.net/manual/en/book.curl.php
example:
$ch = curl_init(); curl_setopt($ch, curlopt_url, "$url"); curl_setopt($ch, curlopt_httpheader, array('text/xml; charset=utf-8')); curl_setopt($ch, curlopt_returntransfer, true); curl_setopt($ch, curlopt_header, false); curl_setopt($ch, curlopt_post, true); curl_setopt($ch, curlopt_ssl_verifypeer, false); $response = curl_exec($ch); curl_close($ch);
Comments
Post a Comment