I would like to ask everyone for advice. I have just learned tp5 not long ago. Now I have a route problem. After turning on routing
think\Route::rule('xxx/client/login.php', 'admins.php/admins/Account/login');
In the browser url It can be accessed normally, but an exception is thrown when using httpwebrequest to send a post request: Internal error 500.
What is the cause?
tp5's route.php is used to define routes with get, post, resource and other methods. If the route is correctly defined and the web page can be accessed but the interface tool cannot request it, you can try adding Content-type: application/ in the header. x-www-form-urlencodedRequest