Accessing REST Web Service

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Accessing REST Web Service


I have created a REST service that is currently running on a Unix server. I issued a cURL command to call the REST service and verified it's working as designed; curl --request POST command and the url I used to test it is localhost:8090/someservice/somename. I have a teammate who now wants to access this REST service via Postman. Instead of using localhost in the URL..he substituted it with the server's hostname, but he is not receiving a response.

What would the REST URL Endpoint be for this service to be called externally? Any help would be appreciated!
# 2  
Did you use POSTMAN on the localhost to test first? Sounds like you only tested locally with cURL?
# 3  
Thanks for your reply! I tested both ways. I used Postman and passed the localhost URL for the POST call and got "could not get any response." Then I used Postman to convert the call into a cURL command and logged into the server and executed it and it worked.
# 4  
So if I understand you correctly, cURL works on localhost but POSTMAN does not work with the same URL calling a URL on the same localhost (no remote calls). Is that right?
# 6  
So this sounds like a POSTMAN configuration issue if that is the case.

Did you check the syslog files for clues?
# 7  
Can you check if the REST application is listening only on localhost only perhaps ?
netstat -an | grep tcp

Look if your app is listening on host ip address or (all interfaces) on port 8090.
If not, change it so it does using application options, look for bind and listen kind of directives.

Since connection from localhost works, i suspect server side is not listening properly.

Hope that helps
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Accessing UNIX hosted web site remotely
Hi everyone- I'm relatively new to UNIX (Primarily Oracle background), wondering if anyone can help me. I did not configure Oracle Database Control (Web-Based admin interface) on the Database Server (HP-UX), however it is running and the URL is configured with an internal IP, which users have...... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
Call web service from Shell
Hello All, I have to import data from xml file to mysql database multi-time a day. I think it is better to write a tool to help this. So I write a web service in php. I don't know that if we can call a web service via shell script. If it can, I think we can create a cron job to help run it...... Shell Programming and Scripting
Shell Programming and Scripting
How to call a web service using perl
Hello to all, What i would like to know is how to call a web service using perl. Where can i find documentation that easy describes this procedure? Any advices will be more tha welcome. Thank you. Best Regards, Chriss_58... Shell Programming and Scripting
Shell Programming and Scripting
Need to Call Web Service from Unix
I'm a Unix and C programming newbie, and I've been tasked with calling a web service from a legacy Unix app... I've come across libxml2 and libsoup, gnome's libraries for XML/SOAP processing... But I'm seeking guidance on the development process... :o... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
Accessing Web Page
Hello, I am new to unix, but wanted to know how can we fetch data from a web page (i.e. an HTML Page), my requirement is to read an html page and wanted to create a flat file (text file) based on the contents available in the mentioned HTML page. Thanks Imtiaz... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers