Sponsored Content
Full Discussion: API http authentication
Operating Systems Linux Ubuntu API http authentication Post 302969812 by baris35 on Monday 28th of March 2016 07:39:29 PM
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]
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
MESG(1) 						     Linux Programmer's Manual							   MESG(1)

NAME
mesg - display (do not display) messages from other users SYNOPSIS
mesg [n|y] DESCRIPTION
The mesg utility is invoked by a users to control write access others have to the terminal device associated with the standard error out- put. If write access is allowed, then programs such as talk(1) and write(1) may display messages on the terminal. Traditionally, write access is allowed by default. However, as users become more conscious of various security risks, there is a trend to remove write access by default, at least for the primary login shell. To make sure your ttys are set the way you want them to be set, mesg should be executed in your login scripts. Options available: n Disallows messages. y Permits messages to be displayed. If no arguments are given, mesg displays the present message status to the standard error output. The mesg utility exits with one of the following values: 0 Messages are allowed. 1 Messages are not allowed. >1 An error has occurred. FILES
/dev/[pt]ty[pq]? SEE ALSO
biff(1), talk(1), write(1), wall(1), login(1), xterm(1) HISTORY
A mesg command appeared in Version 6 AT&T UNIX. AVAILABILITY
The mesg command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. Linux 1.2 10 March 1995 MESG(1)
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy