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 3276324
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:14:42+00:00 2026-05-17T19:14:42+00:00

It’s a big question but I just need a push in the right direction.

  • 0

It’s a big question but I just need a push in the right direction.

I have a website being released soon. One of the services it provides is image hosting. I’m thinking about writing a desktop app in Java to help facilitate mass uploads as well as forcing me to use Java for real-world experience.

How does java send “requests” to an API? I’m using codeigniter for the website, and for those who are unfamiliar, the urls are broken down into 3 parts.
/controller/action/id
So for example : http://google.com/users/addphoto/23
would access the “users” controller, which contains the function “addphoto” and $id would be set to the value “23”.

I’m assuming I will need to get java to access an API using the above url structure, but how do I “do that”? How do I tell the application that accessing this url (ex. “user/authenticate”) with x parameters will yield the information (ex “authentication token”) it needs?

I know this question probably makes no sense but I’m lacking the basic ideas of how Java interacts with anything outside its own project folder. I can write the php stuff just fine, but I don’t want to start until I know what java is capable of.

I did search around a bit before asking, but a lot of people are java developers struggling with php, and I’m in the complete opposite position.

  • 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-17T19:14:43+00:00Added an answer on May 17, 2026 at 7:14 pm

    What you want to be able to do is read and write to URLs. Take a look at the official docs

    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html

    The sample program should get you started. Once you understand how to open URLs, you’ll be able to pass in parameters that will let you authenticate the java application with your php app.

    Even more useful is this application which has the source code for the uploading portion of your needs

    http://www.oop-reserch.com/mime_example_5.html

    You’ll still have to handle authentication on your own. You can have the php app pass back the session ID via xml or however you want, and add that to every request to authenticate the user.

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

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
I have just tried to save a simple *.rtf file with some websites and
I need to clean up various Word 'smart' characters in user input, including but
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I want to count how many characters a certain string has in PHP, but
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.