1,638 questions
0
votes
1
answer
57
views
Should changing website certificate to secure mess with api calls?
So I have been using the code below to fetch a list I needed for my website from an api of mine. I recently converted the certificate of the api hosting website to secure, issue is now my api is not ...
0
votes
0
answers
38
views
How to display multiple formsets in one another?
On the Site Form is used to give data to a case but since there can be multiple on a site it is made as a formset. In addition, each case can have multiple m2m relations, which are also a formset. The ...
1
vote
1
answer
65
views
Why Is file_get_contents('php://input') Returning NULL for GET method?
I'm experiencing a weird issue with a PHP script that was working fine until my server was migrated to CloudLinux v9.5.0 with cPanel version 126.0.9.
In the example below, I'm using Postman to send ...
1
vote
2
answers
286
views
QSYS2.HTTP_GET command, can't figure out Proxy and Headers configuration
The problem
I am trying to use SQL to do a GET request on the IBMi. The URL I am trying to query is the one that is in the documentation : 'https://www.ibm.com/support/pages/sites/default/files/inline-...
0
votes
0
answers
52
views
GET request for an API regarding phone transcripts
I am trying to write a program that will fetch a transcript of phone records from a data base but my code keeps giving me a 401. I am pretty sure I have the url correct, so any help would be greatly ...
0
votes
1
answer
79
views
Get method not displaying the data on browser and postman
I was trying to create API with Java. While using the get method I'm not receiving the JSON data. It's only displaying closed braces as response.
I'm attaching the code and output below. Any ...
0
votes
0
answers
61
views
Angular SSOLogin method: TypeError 'undefined' where a stream was expected in HttpClient GET request
I’m working on an Angular authentication service that includes an SSOLogin method for single sign-on functionality. Some query parameters are checked and if there are available, SSOLogin method will ...
1
vote
1
answer
423
views
Using QSYS2.HTTP_GET in RPGLE and having Bad request (400) error from the server
I am trying to call external API using QSYS2.HTTP_GET function using SQLRPGLE, having Bad request error from the server. I have used some variables to build the URL request and option parameter. Need ...
0
votes
1
answer
43
views
How do I avoid the status error after Http Headers sent?
I have an API called using HttpGet. The API validates the call and returns a report file directly (Excel or CSV). If the validation fails, it returns a Json Result object with an error code and ...
0
votes
0
answers
105
views
Post method issue with google conversion linker from GTM
I've recently started using Google Tag Manager (GTM) on my site. In GTM, I've got the Conversion Linker activated, which, if you come to the site from a Google Ad, will add a a few parameters to the ...
0
votes
2
answers
120
views
How to run selenium browser in invisible (or minimized mode) with python on Windows PC?
Is there anyone who can help with how to run selenium browser in invisible (or minimized mode) with python on Windows PC? I need to create a program to get the name of patent from the website of EPO (...
0
votes
1
answer
47
views
How can I replicate a curl -u in a header?
With a curl command I execute:
curl -u appId:secret https://api.example.com
This works I then attempt to do it with headers like so:
{
"Content-Type": "application/json",
&...
0
votes
0
answers
134
views
Creating HTTP Request and Async logout task in AuthController to ensure user is logged out of all windows using C#, ASP.NET Core MVC
I am using C# and ASP.NET Core MVC to use an AuthController to log out of all windows that the application has open. I I then use a public async Task in NotifyClient.cs to complete the request and I ...
0
votes
0
answers
138
views
The HttpClient.GetByteArrayAsync() method gets a broken value(getting an image from the server)
I'm trying to get a QR code generated on the server and put it in an image in the application.NET MAUI.
My HTTPGET method on server ASP.NET:
[HttpGet("{sum}")]
public async Task <...
0
votes
1
answer
45
views
Choose between HttpGet and HttpPost when input is complex in .NET core
In .net core web API,
Endpoint: http://localhost:4200/api/GetUsersByName
Input: {"name":"test", "pageSize":10, "pageNo": 1}
The API searches all users which ...
0
votes
0
answers
91
views
Trying to pass complex object as a parameter of the HttpGet request (FromQuery)
i have standard ASP.NET application with controllers and what i try to do is to pass complex object as a parameter of the HttpGet request.
Like :
[HttpGet(Name = "GetWeatherForecast")]
...
0
votes
0
answers
106
views
Excel Text Translate function without API on MacOS
I have been trying to create a formula in excel using VBA to translate text from a cell to another language (e.g. "=TextTranslate(Text, sourceLanguage, targetLanguage)").
I have found a way ...
-1
votes
1
answer
105
views
Standalone webserver to serve HTTP GET requests
I'm developing a webserver(FCGI) based on using gsoap v2.8.
This webserver shall respond to the incoming HTTP GET requests but it's not working.
I got to know that gsoap provides HTTP callbacks to ...
0
votes
0
answers
364
views
What the error "StatusCode cannot be set because the response has already started" in ASP.NET does mean?
I try to run one method named PostGet:
using Microsoft.AspNetCore.Mvc;
using Jint;
using WebApplication1.Program;
namespace WebApplication1.Controllers
{
[Route("/{endpoint}")]
public class ...
0
votes
0
answers
57
views
AT Commands HTTP request to JSON source with status 200 but response that I get is incomplete (just some part of Response I received)
AT Commands HTTP request to JSON source with status 200 but response that I get is incomplete (just some part of Response I received).
#include <SoftwareSerial.h>
#define RX_PIN 2
#define ...
-1
votes
1
answer
294
views
How can I download an url source html to a string in autohotkey v2
I'm new here, hope I'm doing things the right way!
I want to dl this URL, I've done it before (with help) but now I accidentally deleted my source, and I can't remember where I got help or what the ...
0
votes
2
answers
1k
views
Test with Postman look for a specific item in an array of objects in a response
I have a response with the following body, an array.
I want to check that we have an item and only one with value IsPrimary true and salePerson of value 'Chuck Norris'.
[
{
"districtName&...
0
votes
1
answer
1k
views
Http request caching not working in angular 17
After updating to angular 17 ssr rendering by default use caching for the http get methods, this is confirmed by the angular team. For me the caching not really works. My backend is .Net Core.
As you ...
1
vote
1
answer
94
views
Retrieving Courses Taught by a Teacher using C# and MySQL
I am working on a C# application that interacts with a MySQL database to retrieve information about teachers and the courses they teach. I have a teachers table containing information about teachers ...
1
vote
1
answer
976
views
What is the correct way to send a large parameter to the GET method of a REST API?
I need to update an existing REST API method that returns available subscription plan information. Slightly fictionalized, it looks like this:
GET /api/available-plans/{provider-id}
...where {...
1
vote
1
answer
713
views
How to use TIdHTTP to get json dynamically in code with Delphi?
When I do a GET request to "https://api.github.com/users/octocat" in Postman, then it works:
But If I try to do it in Delphi using TIdHTTP using the following code:
procedure TForm1....
0
votes
1
answer
98
views
Flutter, converting json into list issue: making listview, futurebuilder from data from http.get
I am trying to receive data (list) from the database and save the data as list type, and show the data in front end by using futurebuilder, listview. But I guess the code could not convert the json ...
1
vote
0
answers
179
views
How to send an API request within MS Access with an entity body field for ANPR IP camera?
I need to add and read vehicle plate numbers from a white list in an ANPR camera. I've got a code from the manufacturer TVT, but I'm not able to send it to the camera or get a response.
Usually I send ...
1
vote
0
answers
165
views
The result of responsetext by WinHTTP does not readable
I want to read the data of the file which is in the form of txt on the site by WinHTTP via VB6. code works good but result is unreadable:
this is my code :
Dim HTTPRequest As WinHttp.WinHttpRequest
...
0
votes
1
answer
233
views
angularjs $http document load into an iFrame
I have read through two dozen references trying to get $http.get to pull a document from my server and load it into an iFrame. The call to the document works and its all stored in data - and I can ...
0
votes
1
answer
1k
views
Next.js: Prevent file (as Buffer) in response from being parsed as JSON
I have a server using the Next.js API, whence I want to send the frontend a .csv file encoded in a locale-specific encoding (Shift_JIS).
My server currently uses this approach:
download(res: ...
1
vote
0
answers
113
views
flutter app does HTTP GET request only when debuged but not when build
Hello Flutter and Android programmers, how are you?
I'm developing an app that makes an HTTP request to download a .json file, then reads it and builds a list of options based on the options available ...
0
votes
1
answer
267
views
Java Spring RestTemplate getForObject response not decoded properly
I am trying to execute a HTTP GET request that I can execute properly in Postman in my Spring Boot application using the RestTemplate class.
This is the code I am using to send the request:
...
-1
votes
2
answers
132
views
HTTP 405 Method Not Allowed Django
I am trying to create an APIView (path 'create-room' in urls.py) where I can either edit a Room model if the session already exists or create a new Room model if the session doesn't exist. In the ...
0
votes
2
answers
77
views
Is there an elegant way to combine multiple methods that have the same signature and the same method call? [closed]
I am writing a class that is sending quite a few GET requests and I am looking for the right way to consolidate them. I have extracted the common logic into a method called GetRequest. Here is what it ...
2
votes
1
answer
490
views
Can't map a JSON response to a class object in Flutter
Here is yet another "Expected a value of type 'Map<String, dynamic>', but got one of type 'List'" questions. I've scoured several Stack Overflow posts on the subject including the ...
-1
votes
2
answers
1k
views
Premature end of Content-Length delimited message body (expected: 42 320; received: 7 787)
I am trying to get HTTP response with the help of apache httpclient. I get headers successfully but it throws exception when I try to get contents. Exception is:
Caused by: org.apache.http....
1
vote
0
answers
312
views
Wireshark showing usernames and passwords from asp.net application in plain text
We have an ASP.NET web application which runs as a SAAS service, and end users use a standard browser like chrome to access it. It's a "single page application" architecture in that all GETS ...
0
votes
1
answer
693
views
GET request works with Postman but failed with 403 in python
I tried to make a simple GET request to this url: https://www.artstation.com/projects/39L94v.json
I set same headers for both python and postman as below:
{
"Accept": "application/...
1
vote
1
answer
1k
views
Return Class Derived From Parent Class - ASP.NET CORE Controller
I would like to return an object in a Get-Controller.
The class from the object itself derives from a class and it should be possible to return a list with objects from different classes, but derived ...
-1
votes
1
answer
63
views
Server and database file handling (post, get, delete) is working only partially in my spring boot project
Only POST is working. GET and DELETE are throwing the following error when testing through Postman:
{
"timestamp": "2023-04-06T14:01:59.898+00:00",
"status": 500,
...
1
vote
1
answer
3k
views
How do I set a value for HttpResponseMessage.Content in C#
I have a Web API method that returns data in the HttpResponseMessage.Content property. Here is the code for the method:
[HttpGet]
public HttpResponseMessage MethodName()
{
try
{
var ...
2
votes
1
answer
1k
views
Golang gin rest api post and get
With golang gin rest api I create title, body, date, titles and contents fields, send to postman and save database. The post operation is running successfully, but when I receive the data, I get an ...
0
votes
1
answer
21
views
Why GET method should use when we can user POST method for all type of methods?
I have some confusion that why we require GET methods when we can implement all methods with POST type.
Can you please share your thoughts?
Thank you in advance.
0
votes
1
answer
643
views
.NET Core 6 CORS issue
I have a simple API and when I call my API from another website I get CORS error. I have tested everything and nothing seems to work. The request works fine in Postman. I have an API key middleware ...
0
votes
1
answer
126
views
Getting HTTP 404.15 Error - Not Found ...because the query string is too long
I'm fetching the information from the server. The get method is being used in the SAML Response I'm receiving from the server, which is producing an error:
The query string is too long, resulting in ...
0
votes
1
answer
1k
views
Unable to access array within an array from Salesforce flow http callout (beta)
In sandbox, I am attempting to gather the information from https://data.nasdaq.com/api/v3/datasets/USTREASURY/YIELD.json
I used the beta feature of creating an HTTP callout right from the flow. It ...
2
votes
1
answer
573
views
How to send GET request longer than 65535 symbols from rust?
I am rewriting part of my API from python to rust. In particular, I am trying to make an HTTP request to OSRM server to get a big distance matrix. This kind of request can have quite large URLs. In ...
0
votes
0
answers
136
views
how to append user input to Http get request in Laravel 9
Thank you in advance for taking the time to read through my question.
I'm upgrading an old project from Laravel 8 to Laravel 9
in laravel 8 i was able to append user input to a get request like this :
...
1
vote
0
answers
79
views
Apps Script Security
I am creating an app in Android Studio that gets data from a Google spreadsheet. The app sends an HTTP GET request to an Apps Script. The Apps Script returns a JSON object containing data from the ...