API http authentication


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu API http authentication
# 1  
Old 03-28-2016
API http authentication

Hello,
I am trying to setup a software with an API in my linux server but at some field there are some codes which are called "http authentication"
I dont know how to run them.
Could anybody give me an idea about how it's working.
How http authentication is done; from linux terminal or from browser as well as chrome,mozilla or from terminal under mysql?

Code:
HTTP_METHOD

HTTP methods which are supported.

GET    - data obtaining
PUT    - updating
POST   - creating
DELETE - deleting


Authentification and authorization

Example 1. Data obtain about other devices.

> GET [API_URL]/stb
< {"status":"OK","results":[{"mac":"00:1A:79:00:15:B3","status":0,"additional_services_on":"0","ls":1553,"login":"1553","online":"1"},
{"mac":"00:1A:79:00:39:5E","status":0,"additional_services_on":"1","ls":3,"login":"3","online":"0"}]

thanks in advance
Boris

---------- Post updated at 06:39 PM ---------- Previous update was at 11:21 AM ----------

Hello,
I have learnt that when we call a php file with put,get,post,delete commands from terminal right after adding some mysql commands inside that php file, it creates a database/table etc or deletes some tables or displays current status in sql.

b.regards
Boris

Last edited by baris35; 03-28-2016 at 08:40 PM.. Reason: [sorted]
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Web Development

Face-api.js — JavaScript API for Face Recognition in the Browser with tensorflow.js

Ref: https://itnext.io/face-api-js-javascript-api-for-face-recognition-in-the-browser-with-tensorflow-js-bcc2a6c4cf07 (0 Replies)
Discussion started by: Neo
0 Replies

2. Shell Programming and Scripting

awk script to find time difference between HTTP PUT and HTTP DELETE requests in access.log

Hi, I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log. Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)
Discussion started by: Juha
3 Replies

3. Web Development

HTTP Headers Reference: HTTP Status-Codes

Hypertext Transfer Protocol -- HTTP/1.1 for Reference - HTTP Headers 10 Status Code Definitions Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. (1 Reply)
Discussion started by: Neo
1 Replies

4. Shell Programming and Scripting

Need to run an API from a script and extract fields from output of API

Hi, I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr. The output of API will be like : <usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false"... (1 Reply)
Discussion started by: rkrish
1 Replies

5. Shell Programming and Scripting

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (4 Replies)
Discussion started by: senkerth
4 Replies

6. Programming

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (0 Replies)
Discussion started by: senkerth
0 Replies

7. Programming

Help With API or Code

Hi: Well, i need to do a program for control the labs time of the students in my university. This program that I have to do it got to be on C++ or C, and have to do a several things like, check all the process that the user execute when he star his session on KDE or console, sometime close an no... (0 Replies)
Discussion started by: leonel06033
0 Replies

8. UNIX for Dummies Questions & Answers

tyoes of API

What is Low-Level API and High-Level API? (1 Reply)
Discussion started by: sumsin
1 Replies
Login or Register to Ask a Question