如何使用另一个网站用PHP进行查询?

I want to use sci-hub.cc to download scientific papers, but it is in russian and it is not easy to use. It has a textfield for enter DOI or paper link.

Now, I want to make a website that, when users insert paper link, send this link to sci-hub as a query and then download it. How can I do this in php?

Thanks a lot.

i dont know how your page is working but what you looking for is a "POST" Request with. The code below "does" the same if you type in something in the field on your page:

            <php
    $url = 'http://sci-hub.cc/';
    $data = ['Request'=>'TEXT FOR FIELD'];
    $options = array('http' => array(
                     'method'  => 'POST',
                     'content' => http_build_query($data),
                     'header'=>  "Content-Type:  application/x-www-form-urlencoded 
")
   );
       $context  = stream_context_create( $options );
       $result   = file_get_contents( $url, false, $context );
    ?>