Skip to content

Instantly share code, notes, and snippets.

@kiang
Created January 4, 2016 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiang/040ae1122a1cb31cf033 to your computer and use it in GitHub Desktop.
Save kiang/040ae1122a1cb31cf033 to your computer and use it in GitHub Desktop.
the snippet to fetch printable page
<?php
$curl = curl_init('http://jirs.judicial.gov.tw/FJUD/PrintFJUD03_0.aspx?jrecno=102%2c%e8%81%b2%e5%86%8d%2c2%2c20130207%2c1&v_court=KSH+%e8%87%ba%e7%81%a3%e9%ab%98%e7%ad%89%e6%b3%95%e9%99%a2+%e9%ab%98%e9%9b%84%e5%88%86%e9%99%a2&v_sys=M&jyear=102&jcase=%e8%81%b2%e5%86%8d&jno=2&jdate=1020207');
curl_setopt($curl, CURLOPT_FORBID_REUSE, true);
curl_setopt($curl, CURLOPT_VERBOSE, true);
curl_setopt($curl, CURLOPT_REFERER, 'http://jirs.judicial.gov.tw/FJUD/FJUDQRY03_1.aspx');
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 1);
echo curl_exec($curl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment