Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending POST request via HTTP using Safari on Mac

Tags:

I need to call a webservice with Safari on Mac. Since the methods are in POST I can't paste the url in the address bar of Safari (like with GET methods).

So, I'm looking for a plug-in or similar that allows me to send the request and then receive the response inside the browser. The response is JSON so with the JSON plug in I can see all the response with his formatting.

Solutions ? Thanks !

like image 544
Fry Avatar asked Feb 12 '13 18:02

Fry


People also ask

Can I make a post request in browser?

You cannot make a POST request by using a web browser, as web browsers only directly support GET requests.

How do I share a URL on a Mac?

In the Safari app on your Mac, click the Share button in the toolbar or choose File > Share. Choose how to share the webpage. When you email a page, Mail lets you choose whether to send it as a webpage, PDF, link, or Reader article (if the page is an article).


1 Answers

Safari is my browser of choice, so I can empathize with you for wanting a native plugin. Fortunately, while there aren't any extensions available, there are quite a few native OSX clients for HTTP/REST end-point testing. I have been using CocoaRestClient, which includes auto-formatting and syntax highlighting for JSON, as you requested. It's open source, lightweight, and is at least actively supported by its developers:

http://mmattozzi.github.io/cocoa-rest-client

like image 89
nallenscott Avatar answered Oct 15 '22 12:10

nallenscott