Using a servlet from C code

Posted on 2005-03-17
Medium Priority
Last Modified: 2010-04-15
Hi experts,

I wonder if it is possible to write a piece of C code (not C++) to access an already working Java servlet. This servlet is able to get some information (strings) from a back end.

Can I perform a serlvet invocation? Can I read the http answer in any way?

Any example or clue?

Question by:elrichal
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 10

Expert Comment

ID: 13572396
of course - you simply need to do some socket programming to call the HTTP servlet and then read the response. there are already c libraries for HTTP so you could reuse one of those.

LVL 45

Accepted Solution

sunnycoder earned 100 total points
ID: 13572526
What platform?

As makerp said, it is possible ... google for libcurl

Assisted Solution

ppk_cbe earned 100 total points
ID: 13579293
Take a look at http://experts-exchange.com/Programming/Programming_Languages/C/Q_21350967.html. This is a similar question with some more information you will find helpful.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question