You will get more information in the “Network” tab of the dev tools.
And you can also open dev tools in Postman and screenshot the exact same details of that request as well.
Then compare.
This is on the same computer as the Postman request?
You will get more information in the “Network” tab of the dev tools.
And you can also open dev tools in Postman and screenshot the exact same details of that request as well.
Then compare.
This is on the same computer as the Postman request?
i can’t see Network tab but i think do you talking about that
if not please check my postman i have no Network tab
yes this is at the same computer, i’m sorry for my english is not very well but i’m trying
Your Chrome screenshot shows the tab clearly - next to the selected “Elements”.
For Postman probably easiest here: https://www.getpostman.com/docs/v6/postman/sending_api_requests/debugging_and_logs#network-calls-with-postman-console
I have no idea what this is - but it seems like a bad idea to intercept requests from the browser through Postman. Is this how you got the request into Postman or did you create that one manually?
I was talking about this:
The request seems to be succeeding now - you are getting a 200 OK and not the 404 Not found any more you posted in oyur inital post. Correct?
yes i’m trying use post method
vs
First the POST failed, now a POST succeeds.
That is quite normal, the first is probably an OPTIONS request followed by a POST request. Click the individual requests to check. (Or enable the display of “Method” in the table seen in your first screenshot.
But the 404 you are seeing now in the second request seems to be caused by your PHP code.
Can you post the whole HTML code that is output?
And the PHP code being executed here?
ok i’m checking everything
HTML CODE
<ion-navbar>
<ion-buttons>
<button ion-button (click)="viewCtrl.dismiss(false)">
Cerrar
</button>
</ion-buttons>
<ion-title>Login</ion-title>
</ion-navbar>
<ion-list>
<ion-item>
<ion-label floating>Correo</ion-label>
<ion-input type="text" value="email" [(ngModel)]="email"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Contraseña</ion-label>
<ion-input type="password" [(ngModel)]="pass"></ion-input>
</ion-item>
</ion-list>
<button ion-button block [disabled]=" 4 > email.length || 4 > pass.length" (click)="ingresarDB()">
Ingresar
</button>
PHP CODE
public function prueba_post() {
$data = $this->post();
$this->response($data);
}
You misunderstand.
The last screenshot contains the HTML code of the error page your server is sending to the app instead of the data you want:
This doesn’t match the PHP code you are posing at all.
ok. i’m sorry i don’t speak very well.
i understand now.
now i have ion both request but still no show data
Request URL: http://localhost:90/generales/rest/index.php/login/prueba
Request Method: POST
Status Code: 200 OK
Remote Address: [::1]:90
Referrer Policy: no-referrer-when-downgrade
Sorry, what exactly is the current state besides “still no show data”?
Are the request(s) correctly sent to the server and return a 200 OK?