Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6901831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:43:21+00:00 2026-05-27T07:43:21+00:00

I have C++ HTTP code on the client side which will communicate with a

  • 0

I have C++ HTTP code on the client side which will communicate with a remote web service on the server side.
The server is Tomcat Apache server which is configured on port 8080.
The webservice which I have to access through my C++ http code is at:

http://somehostname:8080/some_path/some_api 

Is this possible?

1st confusion: I know that HTTP POST requests are sent on port 80 and here I have port 8080.

2nd confusion: The server is Tomcat Apache and the server code(webservice) is in java. This means that I have to access that java code through my C++ HTTP POST method. Is it possible to communicate C++ HTTP POST method to JAVA?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:43:22+00:00Added an answer on May 27, 2026 at 7:43 am

    what i know that HTTP request(POST) is sent on port 80 and here i have
    port 8080

    An application can use any available/free port. By convention certain ports are used by specific applications. E.g. usually HTTP servers run on port 80 but they can also run on 8080 or any other port.

    the server is tomcat server and the server code(webservice) is in java
    that means the i have to access that java code through my c++ HTTP
    POST method is it possible to communicate c++ HTTP POST method to JAVA
    ??

    Yes it is possible.
    You are essentially sending an HTTP message that the receiving side i.e. the Java application can “understand” it since it will be formed according to the HTTP standard (an HTTP message has a specific format).
    All in all an HTTP message is plain text.

    You should note though that in general there are many pitfalls when you try to communicate a C++ application with a Java application as there are subtle differences e.g. Java’s lack of unsigned primitives compared to C++ etc

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code on client side: <script src=http://code.jquery.com/jquery-1.5.js></script> <script> $(document).ready(function() { $(a).click(function()
I have a web app which talks to a custom back-end server over HTTP.
I have downloaded the sample code from this site for FTP Client http://www.lysesoft.com/products/andftp/index.html But
I have a java file Test.java (below) which uses Guava's HashMultiMap (downloaded from http://code.google.com/p/guava-libraries/
I have problems with following code: http://lisper.ru/apps/format/96 The problem is in normalize function, which
We have an ASMX web service which we invoke from our ASP.NET application using
I have written some data fetch service which fetches some entities from main web
I have two web pages which work basically the same, code-wise, but one of
i have a client-server application which uses .NET Remoting communication. For authentication reasons i
Suppose we have this example: http://techdroid.kbeanie.com/2009/07/custom-listview-for-android.html with source code available here: http://code.google.com/p/myandroidwidgets/source/browse/trunk/Phonebook/src/com/abeanie/ How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.