Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout #61

Open
katesaikishore opened this issue Mar 12, 2021 · 2 comments
Open

Timeout #61

katesaikishore opened this issue Mar 12, 2021 · 2 comments

Comments

@katesaikishore
Copy link

katesaikishore commented Mar 12, 2021

file_get_contents(https://www.thequint.com/news/webqoof/1): Failed to open stream: Connection timed out

$opts = array('http'=>array('header' => "User-Agent:MyAgent/1.0\r\n"));
	$context = stream_context_create($opts);
		$doc = hQuery::fromFile('https://www.thequint.com/news/webqoof/1', false, $context);
	dd($doc);
@katesaikishore
Copy link
Author

It is working good in localhost but when comes to heruko or my own server it showing error!

@duzun
Copy link
Owner

duzun commented Apr 20, 2021

The issue is most likely with the server blocking your client, maybe by IP.

See #57 for more options of how to fetch the HTML document from a server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants