8,684 questions
0
votes
0
answers
41
views
ms-graph keeps only html body when creating drafts
I use ms-graph for sending emails and it works fine when I pass it a full html body that start with the <!DOCTYPE html> element.
However, the same html is stripped down to its <body> ...
0
votes
0
answers
44
views
I don't fully understand the difference between CL.TE and TE.CL in HTTP request smuggling
I am doing labs in PortSwigger and the topic is HTTP request smuggling. And I am working on CL.TE and TE.CL. And for these labs :
https://portswigger.net/web-security/request-smuggling/exploiting/lab-...
0
votes
0
answers
93
views
HTTP post request keeps returning Error 400
So long story short, in my ASP.NET application I am making a post call where I supply JSON content like this below.
using (HttpClient Client = new HttpClient())
{
var Request = new ...
1
vote
1
answer
74
views
ASP.NET Core MVC Edit GET works but POST results in ArgumentNullException: Value cannot be null. (Parameter 'items') despite debugging showing data
I'm sure this is something really obvious but I've spent hours (including a lot of Googling) on this and I am stuck.
I am able to create a record (along with the Fluent Validations firing where need ...
-1
votes
1
answer
108
views
How to use Boundaries with multiple parts in multipartform data using Swift and URLSession
I am following various examples in this question to try to upload 2 things together in a multipart form request in Swift--a file and some JSON about the file. I am able to upload the file but the ...
0
votes
0
answers
74
views
Passing authorization token with Slack API Event request
I'm trying to connect a request from the Slack Event API with a Google Apps Script Web App.
I've set up and deployed a minimal Google Apps Script Web App with a doPost() method like this:
function ...
0
votes
0
answers
44
views
Getting bad request 400 "Invalid system state type mismatch for var(?attr3) vartype(21): rowtype(22)" exception for SPARQL select query on AnzoGraphDB
We have Anzograph database of version 3.1. I am running a SELECT query on empty graph named "DemoGraph", which does not have any tuple in it."
I am running the below query:
PREFIX rdf: &...
0
votes
1
answer
76
views
Why does HTTP POST latency from ESP32 to server fluctuate significantly?
I'm testing an ESP32 device that sends data to a server every minute using HTTP POST. I noticed that the latency fluctuates heavily. For example, in one 20-minute test, the latency values (in ...
0
votes
1
answer
55
views
Ktor POST body params not sent
I have a post request done with Ktor this way
val response = httpClient.post("${BASE_URL}/following") {
contentType(ContentType.Application.Json)
setBody(UnfollowRequestBody(userId, &...
1
vote
1
answer
48
views
Angular - API call 404 Not Found with code OK with Postman
I'm new here. I apologize in advance if I write nonsense or wrong things, but I've only just started programming.
I'm helping a friend renew his site. I made the new site using Angular with VSCode. We'...
1
vote
1
answer
89
views
How do I send a http post request with an array as a post parameter in laravel
I am trying to send a post request in laravel. Below is my code:
$response = Http::withToken($local_signature)
->post('myUrl', [
"amount" => $amount,
"...
0
votes
1
answer
70
views
Can AWS WAF Inspect Contents of a .tar.lz4 File in HTTP POST Requests?
I'm using AWS WAF with an Application Load Balancer to filter incoming HTTP requests to my api server for security.
My api server expects files to be uploaded as .tar archive compressed with lz4.
Is ...
0
votes
0
answers
36
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
votes
1
answer
70
views
Make `POST` from blogspot iframe to `doPost` from 'Apps Script'
I created an iframe in the custom HTML of 'blogspot'.
In the src of the iframe there is the link to 'Apps Script' (https://script.google.com/macros/s/.../exec).
In the .gs of 'Apps Script', there is ...
0
votes
2
answers
70
views
post route is not working in my express js project
Here is the code for the index.js of my expressjs project. I'm new to Node.js and trying to understand how to develop a web app using MERN Stack.
import express from "express";
import ...
0
votes
1
answer
33
views
C# RestSharp POST request to Texas Parks & Wildlife TORA system returns initial page instead of search results
I'm trying to automate a search on the Texas Parks & Wildlife Department's TORA (Boat/Motor Ownership Inquiry) system using C# and RestSharp. While I can successfully navigate through the initial ...
0
votes
0
answers
56
views
python pytest quart post request with csrf token
How to test POST request, especially to an endpoint which checks for csrf token?
@pytest.mark.asyncio
async def test_fibonacci_pass(client):
response = await client.post('/fibonacci', data=b"...
0
votes
0
answers
50
views
Error in Website Form with own Controller (Odoo 17)
I got always this error on my Website form:
An error occurred, the form was not submitted.
My code is running but I don't get the redirect. In the background it works, but in the front-end, I see ...
0
votes
0
answers
151
views
Apache Superset /api/v1/dataset/ is not working for uploading the new csv file as creating a new dataset
I am new to Apache Superset and I am trying to create a new dataset by directly uploading the CSV file using /api/v1/dataset/. Here is what I am trying to do using Postman.
curl --location 'http://...
0
votes
2
answers
51
views
Android Retrofit Post Data Type to Server States Data Is Null
I am trying to pass a data model to a server in Android using Retrofit to register user account. When I send the data type of UserData to the server via POST, I get an issue. HTTP 500 stating the ...
0
votes
1
answer
60
views
Post Api request Flutter
I have to make a Post Api Request using Flutter.
The Postman screenshot is attached for reference. can someone help me with the code
[1]: https://i.sstatic.net/VQ23OMth.png
Here is the code sample ...
0
votes
1
answer
149
views
Azure Speech to Text API using file in blob storage- 415 response Unsupported Media type
I am trying to run the Azure speech to text resource on some audio held in blob storage, so I have a python program that creates the file in blob storage and then attempts to run the speech resource ...
1
vote
1
answer
110
views
ASP.NET Core 8 MVC : model value is not passed back in POST if a child class property
For some reason, when I use a child property as an asp-for value, the HTTP Post model property shows that they were not modified and my ModelState validation does not trigger.
Here is the example - ...
0
votes
0
answers
27
views
Zend Server web API always returns home page
I'm having this issue where no matter what I do, the zend server api always returns me this response when doing a POST request to the server
<html>
<head>
</head>
<body>
<...
0
votes
0
answers
27
views
Getting compilation error on running a long SPARQL query on anzograph
I have installed anzograph frontend 3.1 , I am running a SELECT query with IN Filter having (1,2,3...,1000) values.
The query execution is failing with below error -
/opt/cambridgesemantics/...
0
votes
0
answers
54
views
httpPost in Microsoft Teams MessageCard (created via connector) doesn't work
I'm updating an old android app that posts a URL to a teams channel. The MessageCard contains a button with a url, however when clicked nothing happens.
I can curl the url on my laptop without any ...
0
votes
1
answer
473
views
How to use server action POST to send data to the endpoint nextjs
I have in my parent component different steps where one of them I use static method Array.from(). right now I'm learning server actions and want to use POST to send the data to the endpoint.
if (prev....
0
votes
0
answers
130
views
JS, React How to pass JSON data with POST method to backend without OPTIONS request?
We're making a project with both frontend and backend, there is auth form, which should make POST request to backend, giving JSON object with email and password of user. If I specify 'Content-Type': '...
0
votes
2
answers
334
views
Create a team webinar using Graph API [closed]
I am trying to create a webinar in team using my user as the presenter. In order to do that, I used the tutorial that is provided by Microsoft at this page : https://learn.microsoft.com/en-us/graph/...
-2
votes
1
answer
111
views
What is the body to send a complex object as a POST using Firefox devtools?
I have an object that works when I send it as JSON using Postman.
{
nest: {
type_id: 33,
name: 'test'
}
}
I want to be able to do the same thing using Firefox devtools.
When I try to post ...
0
votes
0
answers
56
views
How to set grant_type in Apache client HttpPost
List<NameValuePair> postParameters = new ArrayList<>();
HttpPost httpPost = new HttpPost("http://example.com");
postParameters.add(new BasicNameValuePair("grant_type&...
1
vote
1
answer
103
views
Shopware Admin API post new product with postman
Screenshot Postman post request
I have been experiencing difficulties for a few days with the following issue:
I am trying to create a new product via the Admin API using Postman. Unfortunately, the ...
1
vote
1
answer
34
views
Assign json or text value to model View
I have a model view class:
public class ClientModelView : BaseModelView
{
public int ClientId { get; set; }
public int? ClientTypeId { get; set; }
public int? DisciplineId { get; set; }
...
0
votes
2
answers
46
views
Duplicate records in database from POST method
I am writing an app that will send a POST request to insert a new record into the database. Every records inserted will have an epoch time so me to track when is the record inserted. So far everything ...
0
votes
1
answer
66
views
How to invoke REST api using VBA script
Dim WHTTP As Object
Set WHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
mainUrl = "https://googlesample.api.google/okta"
myuser = "myluckyuser"
mypass = "...
0
votes
1
answer
237
views
How to Send a List of Objects with MultipartFile[] and Metadata in a Single Request in Spring Boot
The official documentation describes what to do if you need to get both json and multipart data from a request:
@PostMapping("/")
public String handle(@RequestPart("meta-data") ...
0
votes
1
answer
58
views
ASP.NET Web API : POST method - how to post list of multipart form-data with image?
I'm making personal project to create multi image with text cards(Like quizlet with image). I've written a POST method to create multiple cards at a time.
My current method is:
[HttpPost("bulk-...
0
votes
1
answer
51
views
Angular: use POST instead of GET to retrieve third party API data (Error 400 url too long)
I am developing a little project to understand HTTP requests. For this, I am using a third party API that I call to.
Data Police API
My project has a library of all neighbourhood boundaries in lat and ...
0
votes
0
answers
68
views
Curl http request time out
In http request it working fine (local environment), but when I change to cloudflare Full (strict), it return error of time out. I try to add my ssl certificate config, but still not working!
nginx/...
1
vote
1
answer
61
views
Javascript function returns from function right after await statement
I am writing client-side javascript functions to send post request to server and to get result. I am using such resources in my work:
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/...
0
votes
1
answer
57
views
JSON data doesn't apprear on Postman
I try to post some data on the website, and it runs perfectly when I run on Pycharm. But when I try on Postman it still gets OK(200) but I don't get my JSON data. Here is my code
import requests
...
0
votes
1
answer
33
views
Why can't I make a single method to add a single user or a list of users in my POST request?
I'm learning a little about Rest Controller in Spring Boot, and i'm really a beginner, and i'm doing some tests here and this question came to me. This first option returned error 500. While ...
0
votes
1
answer
46
views
How send Image to API Server, not from file but Image
I've tried send image through multipart/form POST method to server.
It mixes string params and stream content.
However, send file is working. With POSTMAN, with C# code, it worked.
But I want send ...
0
votes
0
answers
59
views
How to properly escape payloads sent with URLFetchApp when the payload contains double quotes
I am trying to POST a payload to a CMS using URLFetchApp. The payload has quotes in the text. I am using URLFetchApp because the code is executing inside a Google Apps Script, which from what I ...
0
votes
1
answer
52
views
Too many recurring Database calls in for loop in POST request of REST API
private Integer getLongestDuration(List<Project> project) {
if (project== null || project.isEmpty())
return 0;
List<Integer> results = new ArrayList<>();
...
0
votes
0
answers
55
views
NestJS not running POST request
I am following a tutorial by Dave Gray and by 29:30 he creates a POST controller as
@Post() // POST /users
create(@Body() user: Record<string, any>) {
return user;
}
When I run this on ...
1
vote
2
answers
2k
views
How can I write a POST request for Azure OpenAI that uses structured output?
I want to write a POST request for Azure OpenAI that uses structured output.
https://azure.microsoft.com/en-us/blog/announcing-a-new-openai-feature-for-developers-on-azure/ says:
Here’s an example ...
0
votes
1
answer
389
views
How to send and url encoded form on supabase http_post database extension
I need to send a request to a restful api from Supabase postgreSQL database using http_post function, sending an urlencoded form in body.
I found no specific documentation on supabase: https://...
0
votes
0
answers
77
views
Unable to send an array via POST - Angular 17
I'm making an app with some videos and a "Add to watch later" button in each, which will save the selected video's title, link and a boolean, then store them in an Array and send to the ...
0
votes
0
answers
103
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 ...