PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, May 11, 2022

[FIXED] How can i simulate REST post request with json data in browser

 May 11, 2022     javascript, json, php, rest, symfony     No comments   

Issue

I have the web application where the frontend is in ExtJS and backend is in PHP.

The forms are build in Extjs and its making PUT and POST request to server for saving data.

The josn data is posted like this

{"id":"101","description":"user1","active":true}

Now for debugging i would like to directly call this URL in browser so that i can use var_dump for helpful messages.

As the request is AJAX by Extjs , so its very difficult to see messages through firebug.

Is there any way to make this request from browser and see response in rendred html.

I don't want to make form.


Solution

If you are using Google Chrome you can use the Postman Extension. It allows you to send pretty much any type of data and see the results.



Answered By - Joseph Guadagno
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing