i want to test a small php script i wrote, which accepts POST requests.. but is there a way to test it without writing a html form. Im trying to do this using simple rest client chrome extension. But I'm not sure how to do POST request in it.
Asked
Active
Viewed 2.6k times
1
-
Did you look into http://stackoverflow.com/questions/4797534/how-to-manually-fire-http-post-requests-with-firefox-or-chrome? – Chalise Dec 06 '12 at 21:01
-
If switching is an option, I would recommend Advanced Rest Client. It is very intuitive, and I have used it for a year now. – whirlwin Dec 06 '12 at 21:01
-
@whirlwin i can switch.. but can i do multiple post requests? if so how.. – syllogismos Dec 06 '12 at 21:02
-
@Charx yes i did see that question. but fiddler is windows only.. and I m not sure how to do the post request in Postman. – syllogismos Dec 06 '12 at 21:03
-
Do you mean sending multiple POST requests concurrently or sequentially? – whirlwin Dec 06 '12 at 21:06
-
@whirlwin say the post equivalent of http://www.test.com?a=fa&b=123 – syllogismos Dec 06 '12 at 21:07
2 Answers
8
By using Advanced REST Client, you can send a POST request in which the data can be stored as form data (probably the simplest).
Just click the second Form
tab when entering the application, and you can specify key-value pairs.
Here is an image of the application.

whirlwin
- 16,044
- 17
- 67
- 98
-
oh perfect, thanks.. i will update in a min if it works.. looks like this is what i want – syllogismos Dec 06 '12 at 21:13
-
-
If you want to read from $_POST (in PHP) change Content-Type header to **application/x-www-form-urlencoded** – jmarceli May 11 '14 at 15:38
-2
I use a very nice Chrome extension for this: REST client or similar. Look in the chrome market, is plenty of tools.

Oscar
- 13,594
- 8
- 47
- 75
-
1yes there are plenty.. but I dont know how to send a post request using those extensions.. i'm not able to see the post variables in $_POST array.. – syllogismos Dec 06 '12 at 21:05
-