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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:55:38+00:00 2026-06-06T10:55:38+00:00

i am writing web-services for login script. Which i have to keep on HTTPS

  • 0

i am writing web-services for login script. Which i have to keep on HTTPS server. in general we are getting username & password on server side as

if(isset($_REQUEST['login'])){
    $user=mysql_escape_string($_REQUEST['username']);
    $password=hash('sha512',$_REQUEST['password']);
} 

But this is fine for HTTP connection.

I have never used HTTPS connection for web services, So i want to know Is there some other way to pass username & password over HTTPS connection? So how to retrieve data from that request.

My client wants to send these data in header information some thing like

Method: POST
Content-Type: application/x-www-form-urlencoded
Content: username=mynames&password=abcabc

And from here i need to retrieve data.i have no idea about this.

  • 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-06T10:55:40+00:00Added an answer on June 6, 2026 at 10:55 am

    HTTPS is effectively transparent to PHP code. It’s entirely handled by the browser and the server. You can access the $_REQUEST variables exactly the same as with an HTTP request.

    Edit (slightly modified question):

    If your client wants you to have a login form to submit the username and password (as your changes to the question indicate), you just make form inputs the same as you would normally in an HTTP connection. Name them “username” and “password”, respectively, and then pull their data from $_POST on the page you’re posting the form to. Setting up the server to respond on HTTPS will make it handle everything else transparently, as I mentioned previously.

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

Sidebar

Related Questions

I'm writing some script, that works with web-servers. So, I have the following code:
The numerous technologies for writing SOAP web services allow me to create services which
I am writing a server used ASP.NET Web Api template and implementing rest services.
I am writing restful web services and everything is fine, my web services are
I just starting to play around with iOS and web services. I'm writing a
I'm writing a web service which expects one of the parameters (called hlink) to
I'm fairly new to writing web services. I'm working on a SOAP service using
I'm writing a JSF 2.1 web application, which is hosted by Tomcat 6. At
I'm writing an application which displays a login form before it loads, and it
i'm writing a SharePoint client and i'm trying to login to the SharePoint Server

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.