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

Idea: Implement low-level util to access the web. #170

Open
spekulatius opened this issue Dec 16, 2022 · 1 comment
Open

Idea: Implement low-level util to access the web. #170

spekulatius opened this issue Dec 16, 2022 · 1 comment

Comments

@spekulatius
Copy link
Owner

E.g.

// GET request
$web->get('https://...');

// POST request
$response = $web->post('https://...', [
  'param' => 'first param',
]);

// ...

This could be done either directly in PHPScraper or built upon another specialized lib such as Symfony HTTP. Exposing the functionality of the existing dependency sounds like a reasonable way to go, if the idea is of interest.

@spekulatius
Copy link
Owner Author

This would replace the existing fetchAsset. No further implications have been considered so far.

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

No branches or pull requests

1 participant