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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:01:08+00:00 2026-06-02T19:01:08+00:00

I have a HTTP REST API in PHP used by an iPhone application. Some

  • 0

I have a HTTP REST API in PHP used by an iPhone application.

Some webservices from this API are secured with a user authentication in the HTTP request credentials but I want to avoid “man in the middle” attacks by providing fully encrypted requests data.

I’m not really skilled in security issues and I couldn’t find any clear answer to my question anywhere :

Is HTTPS relevant for STATELESS REST API ?

From what I understood, HTTPS does 2 things :

  • encrypt your session
  • prove to the client that the server he is talking to is secured

So at first sight it does not respond to my need which is to encrypt the data between my server and the application because the API does not use sessions. But I still have doubts.

Can someone make it clear to me ?

My other solution would by to encrypt requests data with public/private keys system. Would it be more suitable ?

Thank you !

  • 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-06-02T19:01:11+00:00Added an answer on June 2, 2026 at 7:01 pm

    Yes, it is. HTTPS has nothing to do with the application, it’s a tunneling protocol. Even though TLS is itself a stateful protocol, the HTTP part going over it is not.

    Just like if you were using a VPN, you can still have a REST based application. The TLS just sets up and tears down the tunnel automatically for each connection.

    That said, there’s value in leveraging the pipelining aspects of HTTP and HTTPS to improve throughput over TLS connections, but that’s a performance tuning aspect unrelated to the application itself.

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

Sidebar

Related Questions

I have to map a REST Webservice URL like http://server:8080/application/service/customer/v1 to createCustomer method in
I have set up a REST API using the Slim PHP framework, which works
We are trying to implement a REST API for an application we have now.
I have a REST api that will accept a version via a custom HTTP
I have successfully created a PHP REST API which resides on my server. I
The issue is this: I have a web application that runs on a PHP
Basically I want to use the Twitter Users Lookup (REST API) method, this: http://apiwiki.twitter.com/w/page/24142947/Twitter-REST-API-Method:-users-lookup
We have HTTP webservices that are RPC. They return XML representing the object the
Assuming that we have: http.HandleFunc(/smth, smthPage) http.HandleFunc(/, homePage) User sees a plain 404 page
This is JavaScript regex. regex = /(http:\/\/[^\s]*)/g; text = I have http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd and I

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.