CodingAleCR / http_interceptor

A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.
MIT License
134 stars 67 forks source link

Put request is bugged #87

Closed vlladislav45 closed 2 years ago

vlladislav45 commented 3 years ago

This interceptor doesn't works good with type put requests. I had to debug a several hours to understand why my request doesn't send. I think there is a problem with the post requests too but i'm not sure of one hundred percents, it has to be tested.

CodingAleCR commented 3 years ago

Hi, could you tell me what is it you are doing, the expected result and then the actual result?

meysammahfouzi commented 3 years ago

@vlladislav45 If you are sending PUT request to PHP and expect to receive parameters, please be advised that there's a problem with PUT/PATCH requests in PHP where post data are not available in the server.

CodingAleCR commented 3 years ago

Hi, I've added params to all methods that were missing them, hopefully, that helps out. Other than that I'm still working on tests so that I can assure that it works as expected (only 34% is covered by tests), so thank you for the patience. In the meantime, it would help me out tremendously if you could help me answer these questions about your case:

Thank you!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.