how to connect to REST web service from Java application

I have to test the EPA's Data Exchange Web Services. Since it is difficult to create 100 accounts, buildings, energy usage distributions, etc. I want to automate the process. I searched for code...

Flask HTTP Basicauth - How does it work?

I'm trying to create a login system using Flask and HTTP Basic Auth. My question is, is it my responsibility to provide user information from databases, or does basicauth create and access those...

Basic HTTP authentication with Node and Express 4

It looks like implementing basic HTTP authentication with Express v3 was trivial: app.use(express.basicAuth('username', 'password')); Version 4 (I'm using 4.2) removed the basicAuth middleware,...

Basic Auth header not sent (Swagger)

I have a basic auth secured API but after filling in the authentication credentials, it does not apply to request header. I saw"ERROR Server not found or an error occurred " at swagger editor and...

How to show XML comments of class properties in Swagger (MVC 6 Web API JsonResult)

I've added XML comments to my class members but Swagger won't show them in the UI. Am I doing something wrong? UPDATE: It looks like you can't document your model classes in Swashbuckle (5.5.3)...

Is my .asLongAs condition wrong?

Expected output should be 3 calls of like, https://someurl.net%3Blimit=5%3Boffset=0 (1st call will start from 0 offset everytime - Must) https://someurl.net%3Blimit=5%3Boffset=5 (2nd call, limit...

Powershell Invoke-RestMethod Call using Windows store certificate (Basic Authorization ?)

I would like to call a remote Rest web service from a Windows server hosting the remote certificate. I've exported the certificate from the remote server and added it to the Windwos store....

SignalR objects are not being deleted from the heap even when the hub connection is disposed

I have a web application that sends messages from the server to the front end (Javascript) client using SignalR. However, there is also a back end (.NET) client that creates a proxy to the hub....

how to connect a discord bot through proxy

I am trying to run a discord bot using discord.py and through a proxy. The discordpy doc on this is pretty scarce on the subject and not up to date with aiohttp implementation. discordpy doc...

Go http proxy with auth

I need to use a proxy with auth using PostForm method. If I use something like (simplified): request, err := http.NewRequest("GET", url.String(), nil) response, err := client.Do(request) I can...

Need equivalent command for "oc secret new-basicauth" which is deprecated in openshift

I am following this guide (https://github.com/3scale/apicast) to create an environment with apicast and openshift. The guide says that I need to create a secret using "oc secret new-basicauth" ...

How do I can iterate cookie values from http response?

I am using rest API in my flutter app. For further request I need JSESSIONID which I received from my profile API. I successful got response but I need guide to iterate cookie value. I followed...

Is there better way to implement OAuth security in swagger-tools API?

I prepared Swagger 2.0 definition for my API implemented on node.js/connect. I added security definitions: securityDefinitions: BasicAuth: type: basic OAuth2: type: oauth2 flow:...

Using basic auth with gstreamer souphttpsrc

We are using the gstreamer souphttpsrc in a gstreamer pipeline to access and forward at http stream. To access the httpstream we have to use BasicAuth. We know how to format the basic auth header...

Flutter HTTP request using Basic Auth + passing user and password to receive user data back

I am a newcomer, not a professional coder (so be gentle), trying to build a Flutter app that must connect to a web/server API in HTTP. According to the doc, to make a connection a header must be...

Using httpClient.postasync for web api calls .netcore

I am new to .netcore, I am working on web api that are running on docker container and while using postman the web api's are working really fine outputting the results. I want to make a program in...

C# HttpClient Post with Authorization and JSON data - 401 Unauthorized

trying to send a post request (works fine in postman) but keep getting 401 Unauthorised exception in C#. Here is my code: var httpClient = new HttpClient(); var creds = string.Format("{0}:{1}",...

Swagger Codegen basePath is being ignored

I'm trying to generate some web services definitions using Swagger Codegen » 2.2.1 All configs are working and the classes are generate correctly by my .yaml definitions. Why the property...

Mailgun is showing mail opened when it's actually not

I want to know whether emails are opened by the clients or not (I already have a link along with the email but I want to know if they didn't click the link by opening the email and ignoring...

FastApi BasicAuth with cookies redirect problem

every time I succesfully login and want to redirect to /welcome i get an error and don't know why. Here is my code: import secrets from typing import Dict from fastapi import FastAPI,...

stopSever.sh failed at creation of SOAP connector due to SSL handshake error

I am trying to deploy a web application on WAS 9.0.5.5. It is a standalone node without management node. After creating an empty profile and starting it using startServer.sh, everything was fine...

YAML provided on official Mongo Docker Image page doesn't work on CentOS

The YAML file below (originally provided here) works in a Windows and macOS docker environment. But when I run it in a CentOS environment, mongo-express can't connect to the MongoDB service and it...

Authentication Problem with mongo-express when trying to connect with MongoDB Kubernetes Cluster (created with MongoDB Community Kubernetes Operator)

I set up a Minikube-Cluster with the MongoDB Community Kubernetes Operator. To view the content i want to set up a mongo-express Instance which connects to the Mongo-Cluster/ReplicaSet. But if I...

Presto Jdbc Connection gives Error executing query

We are trying to execute presto jdbc connection . We have followed the simple example in https://www.tutorialspoint.com/apache_presto/apache_presto_jdbc_interface.htm Added the jar , run as java...

How to ignore one router for BasicAuth check with Echo framework?

In order to use basic auth to protect the whole application this way can do for all the routers: package main import ( "crypto/subtle" "net/http" "github.com/labstack/echo/v4" ...

NTLM authentication for aiohttp session

I'm trying to migrate an application with a lot of API calls (i.e. fetching data for a list of keys) to use asyncio as it's an IO-intensive task. This API requires NTLM authentication as it uses...

Bad gateway as Traefik fails to point to a new service instance after a failed health check

I have a Docker Swarm web application that can deploy fine and can be reached from outside by a browser. But it was not showing the client IP address to the HTTP service. So I decided to add a...

MongoDB Connection Error (SASL) with Docker - Windows 10

I'm working on a mobile app project with 2 folders for : the front-end (8080 as a local port) the back-end, written in Go Every folder is suited for containers in Docker. I gathered the both...

Amplify CDK with Next.js SSR

I am trying to deploy a next.js (ssr) application in AWS' Amplify using the CDK but Amplify fails to identify the app as next.js ssr. When I do it manually though, using AWS UI, app is identified...

How configure properly Grafana Tempo?

I tried to use Grafana Tempo for distributed tracing. I launch it from docker-compose: version: "3.9" services: # MY MICROSERVICES ... prometheus: image: prom/prometheus ports: ...