Questions tagged [httprequest]
HTTP Request is a message within a request/response sequence, according to HTTP specification. May also refer an HttpRequest class in software frameworks and libraries that automates relevant functionality
7,810
questions
0
votes
0
answers
21
views
Cross-Origin Resource Sharing (CORS) Request Local JavaScript vs Browser Plugin [duplicate]
I am having issue with making HTTP request from a local React application to a web server. I am getting the
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource ...
0
votes
1
answer
39
views
How to properly work with Form Data params in Spring Boot?
I am doing a migration from Google Guice and JAX-RS to Spring Boot.
Prevously the method that I had looked like this:
@POST
@Path("/generateTable")
public ExportResult ...
0
votes
2
answers
33
views
Pass data as body in express http request
I'm developing a site in node.js and I'm trying to separate frontend and backend. To do so I'm using http.request to send/ask to the backend data but I can't pass data in the body. I put the code ...
0
votes
1
answer
82
views
POST Request to .net Core 7 Web API Returning Empty String
So I am using the following C# code running on localhost to send a POST request to a .net Core 7 web api deployed on IIS 10.
I can make successful GET requests using the C# code, however the POST ...
0
votes
1
answer
25
views
Does Qmetry version 3.0.1 support http patch request? [closed]
We recently added http patch request in our implementation using Qmetry 3.0.1 version.
We are getting below error:
java.net.ProtocolException: Invalid HTTP method: PATCH
0
votes
1
answer
19
views
How to get JSON DATA from HTTPRequest in Godot 4.1
Hey I try to get JSON DATA. The code is below. I tried many things, but I am not able to receive a normal JSON.
func makeLoginRequest():
var url = "https://chocolatefactory-api.dreamstudio....
2
votes
1
answer
66
views
Missing __requestVerificationToken in HTML
My goal is to upload a file via HTTP POST Request in JMeter. However, this POST request requires a __RequestVerificationToken, which is missing in the HTML of the page.
The problem: While I was able ...
0
votes
0
answers
18
views
Unable to make an HTTP REQUEST (POST) Using Macrodroid to Access PaLM API
When trying to make a http request to PaLM API I just get the output:
{
"error": {
"code": 401,
"message": "Request had invalid authentication credentials. ...
0
votes
0
answers
30
views
How to call php cgi from C++ httpWebserver? [closed]
I write a webserver from 0 in c++. in this moment i write a http request parsing. after parsing request i have all data from request. Request Line, Headers, Request Method, etc. If i receive a path ...
0
votes
0
answers
66
views
I have problem with receieving POST type http requests
So... My issue is very simple.
I send request from my roblox game using http request (POST method). Now... I've tested with php already, the request is sent successfully and is receieved. However, we ...
0
votes
1
answer
29
views
Populate custom field via http request to account table in Dataverse
I have added some customfields to the account table in Dataverse, when I want to populate them via the http request I use ( https://server-test.api.crm4.dynamics.com/api/data/v9.2/accounts ), I get a ...
0
votes
0
answers
27
views
Difficulty Displaying Retrieved Data from API in Flask Templates
I've been facing an issue with my Flask application where I'm attempting to display data retrieved from an API in my HTML templates but have run into some difficulties. Here's a brief overview of my ...
-1
votes
0
answers
24
views
Cant acces Discord API In Dart
I'm currently trying to make an application that reads and displays data from discord. This should be realised in flutter. I have tried to implement this via an API request. Most of the requests in ...
0
votes
0
answers
16
views
Retrieve GitHub contents from private repo not working in Firefox
The following code works perfectly in Chrome but not in Firefox.
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module">
import axios ...
0
votes
2
answers
62
views
How to get status_code from an exception object
In my code I have a get request as:
response = requests.get(url)
For invalid status code ie non 2xx an exception is raised,
exp_obj = RequestException(response)
Now I want to get the status code from ...
0
votes
1
answer
36
views
Getting Content-Type application/xml instead of text/xml when I send request through WSO MI
Hi I am trying to send a request with header content-type as text/xml but I am getting application/xml.
wire logs are as follows:
DEBUG {header} - >> "Content-Type: application/xml; charset=...
0
votes
1
answer
48
views
Flask Partial Video Stream not working on Ipad and Iphone
I'm trying to write a flask webpage which streams a specific range of bytes to the client, so you can watch large video files(mp4) from a network drive without having to load the whole video. It ...
0
votes
0
answers
71
views
Missing code to login this website and scrape needed data
I am trying to scrape data from my goods provider website in order to easier populate and update some fields of my product info. I achieved to get all the data except 6 pieces of text which are only ...
0
votes
1
answer
45
views
how can I upload any file with CLI with go?
I wanna make a CLI program that can upload a CSV file so that later I can use the file uploaded as a payload to be proxied to the backend program?
Here is the scenario:
get the path dir of the CSV ...
0
votes
1
answer
14
views
async http request breaks fake-timers
I need to combine simulated discrete time events that I faked with fake-timers with real http requests. Here is an example code
const FakeTimers = require("@sinonjs/fake-timers");
const ...
2
votes
3
answers
229
views
Efficient ways to parse an HTTP request in C [closed]
I'm writing an HTTP server in C. Note that I DO KNOW how to parse a string in an HTTP request format. This means I can easily parse out the headers after I've received them.
My struggle is the ...
0
votes
1
answer
18
views
Getting system cannot infer the transport information error
Hi I am using wso2 micro integrator to send a request to an endpoint but I am getting following error:
Unexpected error during sending message out org.apache.axis2.AxisFault: The system cannot infer ...
0
votes
0
answers
57
views
How to post request in java to get the response
I want to post the request in same formate.
POST /api/bla/bla/test/token HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
Authorization: Basic aaabbbCCCdddeeefffGGG
client_id=...
1
vote
0
answers
39
views
Angular: Error handling in HTTP request to receive a file
I need to send a request to the server, and I expect the server to respond with either a file or an error message if something goes wrong. The issue is that I'm struggling to set up my request to ...
2
votes
2
answers
180
views
How to accept all content-types on my ASP.NET Core Web API?
I have an endpoint on my ASP.NET Core Web API that looks something like this:
[Route("api/v1/object")]
[HttpPost]
public ObjectInfo CreateObject(ObjectData object);
I'm migrating this API ...
0
votes
0
answers
21
views
Send request to POSTMAN Mock server
I'm doing HTTP request with nRF9160 DK board and POSTMAN MOCK server.
My goal is send HTTP request from nRF9160 DK board, and check HTTP request from POSTMAN mock server.
I'm using nRF for VScode, ...
0
votes
1
answer
50
views
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request:The browser (or proxy) sent a request that this server could not understand. KeyError: 'video'
I'm trying to pass a live video stream from JS to python for face recognition using a HTTP request and I get the error
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) ...
-1
votes
0
answers
43
views
except (ProtocolError, OSError) as err: > raise ConnectionError(err, request=request)
I am running my program from pycharm. The test script is in in pytest.
The program was working fine 10 days back and suddenly started giving this exception.
I am making simple HTTP request :
Initially ...
0
votes
1
answer
81
views
How to have a conversation with a botpress bot using HTTP requests and responses?
Want to know how to have a conversation with a botpress bot using HTTP requests and responses (want to eventually send these requests through Postman). I am able to have admin access to this bot. Also,...
0
votes
1
answer
59
views
Request an access token from Microsoft OAuth
I am trying to use SSO from Microsoft account which is explained in Request Authorization.
I have done registering app and request authorization so I code from Microsoft but I am not able to get ...
0
votes
0
answers
33
views
Get request in local not working React Native
How to correctly send a request to a local network?
Tried this:
import axios from 'axios';
const test = () => {
axios.get('http://192.168.0.100/Power?Power=1')
.then(response => {
//...
0
votes
0
answers
34
views
SocketException and HttpRequestException
I want to connect my asp.net core API project to my asp.net core project. Also, my Asp.net core project is being prepared with an n-layer architecture, I defined a new controller in my presentation ...
0
votes
1
answer
58
views
React Native doesn't work Get request on local network
I'm new and haven't been able to solve the problem for several days now. There is a device on the local network (smart home) that I can turn on and off from the browser without problems using a get ...
1
vote
1
answer
52
views
how do I send a image as binary data to my API using angular?
I am trying to make a angular request based on a curl request, this one:
curl -k -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/octet-stream" --data-binary '@/...
0
votes
1
answer
48
views
CORS issue with Spring Boot 2023 And Custom Header from React App
This is my actual @Configuration class:
package com.example.churchbillboard2.configs;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config....
1
vote
0
answers
63
views
Read a multipart.file uploaded by http request with pdf library in golang
I have tried to parse it directly but it turned the binary of the pdf so I tried this instead: copy the file content from the request into a new file that placed in the same package and read it but it ...
0
votes
1
answer
49
views
Download password-protected video with vlc
I've learned how to download videos with VLC via the "Open network stream" GUI, and I've done that dozens of times. I once had to add a http-referrer, but otherwise, I never had much trouble ...
0
votes
0
answers
35
views
Request-scoped bean is available in @RestController but throws ScopeNotActiveException in HttpFilter
Recently I've run into an issue regarding request-scoped beans. Here's the code:
@Configuration
class PreAuthorizationHttpHeaderFilterConfig {
@Bean
JwtPreAuthorizationConfigurer ...
1
vote
0
answers
28
views
VB/ASP.NET use http or tcp request instead of a curl command
I've this curl commands:
curl.exe -s -X POST --cookie-jar c:\programdata\curl.cookies -F "username=X" -F "pwd=X" http://192.168.2.170/goform/UserLogin
curl.exe -s --cookie c:\...
0
votes
1
answer
39
views
Send request which depends on other request Angular
I read about Angular rxjs operators but didn't understand how can change my logic to send request to server which depends on other request and its data.
I have a modal window open and on ngOnInit I ...
0
votes
0
answers
75
views
Getting "Request aborted" exception if REST operation takes more than 2mins
I have a server written in python that runs on WSL. I communicate with it from C# via REST api. The service do that's called via _restClient.PostAsync can take a few seconds or a few minutes. ...
1
vote
0
answers
57
views
Chrome Extension: Block all uploads user attempts to make on web page
I'm trying to create an extension for business purposes that blocks users from uploading documents on websites. Most websites use a simple <input type="file"> which I can easily ...
0
votes
2
answers
85
views
How do I run a http request using a functional resolver?
In the past I can use a class based resolver where I can inject HttpClient in the constructor, but that's been deprecated Source.
I'd like to make an HTTP get request in a functional resolver. How do ...
0
votes
0
answers
31
views
How can I find the cause of "null" characters in an http request response?
I have multiple http requests being made to multiple databases using cURL. Each cURL request is querying one table in a single database, getting all data between two timestamps.
These requests are ...
0
votes
1
answer
162
views
Log response times for all HTTP requests from a docker container
I have built a docker image that contains a pre-built application that I cannot add logging statements to. The application makes many HTTP requests as it executes, and I would like to log those ...
0
votes
0
answers
45
views
Patch is not updating but deleting my data
I've been trying to use the http requests to update a status of a car, so that it will for example go from 'in progress' to 'canceled'. I am using patch because I do not want to update all data but ...
0
votes
0
answers
25
views
I'm uploading an image with react native and post it an API. It only works in my second try
I'm using react native class component. I'm trying to pick an image from gallery and post it to API. But it only works in my second try.
When I pick image from gallery it says:
Fetch Error: [Type ...
0
votes
1
answer
135
views
Google Cloud Function HTTP request connection times out
I am performing an http request to the LibreNMS API via the following Python code:
import requests
TOKEN = './token.json'
def get_request(request_type):
url = f'http://192.168.1.141/api/v0/{...
0
votes
1
answer
68
views
When I added HttpPost attribute my app can not find the correct route
I used ASP.NET 6 to develop A Web Application . I'm faced with some strange error .When I add an HttpPost attribute on action methods, the routing system fails to find the specific view. I added ...
1
vote
1
answer
110
views
How add list of Multipart in Dto and hit with postman
problem statement:
to create Rest API which process List of Test Class and for each object present in list, has list of multipart pdf files,
**how I am doing it currently **
I have created below test ...