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,750
questions
0
votes
1
answer
135
views
How to send multiple files to backend API using angular?
On my site created with Angular I have a contact form that takes as input: "name", "surname", "email", "message" and optionally one or more files and (via an ...
0
votes
2
answers
32
views
download password protected file from owncloud with python
How can I download a password protected file inside python?
The file is shared via Owncloud and the access is protected with a password by Owncloud.
I know it works with curl by using:
curl -u "...
-1
votes
0
answers
17
views
Dont get a value from Attribute in Express JS
Recently, I made some form that the value is assigned from itself and from html attribute directly.
The problem is, when I do some req.body.value , I could get the value from the form, but didn't get ...
0
votes
0
answers
15
views
Chrome extension v3 - Sending http requests and scrape a website
With manifest v2 version one could make a simple content script with GET requests to another website. XMLHttpRequest would return the webpage when setting
xhr.responseType = 'document'
And one could ...
0
votes
0
answers
24
views
How to create a HTTP request to get the currently open website URL?
I'm trying to create a HTTP request which will enable me to check what site is currently open in the browser.
Situation: I'm hosting a website locally (Xampp), there are several subpages. I connect to ...
-1
votes
1
answer
39
views
how to pass output of HTTP request Task to variable in Swift
In Chrome browser, I input this address
https://jsonplaceholder.typicode.com/todos/1
Then I see output on Chrome window:
{
"userId": 1,
"id": 1,
"title": "...
-2
votes
0
answers
22
views
HTTP POST request is being interpreted as OPTIONS in Spring
The UI is calling a Spring Boot API as follows:
saveData(data: Request): Observable<Response> {
return this._http.post<Response>(
"http://localhost:8080/saveData",
...
1
vote
1
answer
19
views
Ktor - Unit testing is throwing 404
I have a simple program in Ktor. It runs perfectly, but when I run the unit testing class it only throws this error: "expected:<200 OK> but was:<404 Not Found>"
This is my unit ...
0
votes
0
answers
11
views
Convert a PDF to DOCX using Adobe PDF Services via REST API (with Python in Manjaro) Issues
I was following the answer in this question: Convert a PDF to DOCX using Adobe PDF Services via REST API (with Python) to be able to export a pdf document into a docx one.
I am able to successfully ...
-1
votes
0
answers
19
views
Content Type issue in http requests (still text/html when I change it to application/json)
I try to write a service in PHP and my code does not work.
This is my code
<?php
$data_array = array();
$data_file_contents = file_get_contents("../data/credentials.txt");
$...
-1
votes
0
answers
9
views
Is it necessary to use specific resolver for each data request in one route in angular?
I have several data requests in a route and wanted to know should I set resolver for each of them? Is there any way to handle all requests only in one resolver? Or even is it really necessary to use ...
0
votes
0
answers
13
views
How to send parameterId in the middle of http GET request url in Go [duplicate]
I need to route a request from one service to another and the url path looks like this
"blog/{post_id:[0-9]+}/posts/{category_id:[0-9]+}"
so I don't know how to pass this post_id while ...
0
votes
1
answer
11
views
Does the GitHub API provide a way to check if a branch is up-to-date?
In GitHub, in the branch protection settings, you can require branches to be up to date before merging (this is possible both for both GitHub Enterprise and for public repos in free GitHub):
Then on ...
0
votes
1
answer
41
views
Cast to ObjectId failed for value "6283201d60c794631cd1ba33\n" (type string) at path "_id" for model "Post"
I'm working on a social media project and getting this getting when I'm sending like/Unlike post request
CastError: Cast to ObjectId failed for value "6283\n" (type string) at path "_id&...
0
votes
0
answers
10
views
Android Asynchronous Http Client slow in one network but fast in another
I am using the Android Asynchronous Http Client library in my application to communicate with my own server. The server is currently in in my home network.
When I was firstly developing the server and ...
0
votes
0
answers
10
views
Keep more then one openned HTTP sessions
I wonder if it is possible by using python to establish more than one opened HTTP keep-alive session by one user simultaneously.
For example, could I use multiprocessing to create more sessions ...
0
votes
1
answer
38
views
Java springboot application I have to create in which I have to send requests to multiple endpoint with their schedule time at once
Explanation - I have IP address/port and thier time frequency saved in DB.
I have to create service or job that will run on scheduled time. It will read endpoints from db and send request to each ...
1
vote
2
answers
45
views
I am trying to understand what exactly is signature query parameter in binance
I am trying to access this endpoint, where signature parameter has to be sent as query parameter
https://binance-docs.github.io/apidocs/spot/en/#current-open-orders-user_data
I am trying to understand ...
0
votes
0
answers
19
views
How to save data in variable to use outside the scope of http request from API with node.js? [duplicate]
getAccessCode.js
import { stringify, unescape } from "querystring";
import { request } from "https";
import {getCode, setCode, getRefresh, setRefresh} from './helper.js';
let ...
0
votes
1
answer
23
views
Get public ip associated with the private ip in Java using http request to ifconfig.co
I have written a code to get all the private ips associated with each interface. I'm storing all the private ips in ArrayList ips.
List<String> ips = new ArrayList<>();
for (Enumeration<...
0
votes
1
answer
54
views
Issues making a TLS 1.2 request with .NET Framework 4.7+
We have a .NET 4.7+ application running on an Azure Cloud App Service. When we try to call and API that has TLS 1.2 minimum, using HttpWebRequest, we get a "The request was aborted: Could not ...
0
votes
0
answers
18
views
The request was aborted: Could not create SSL/TLS secure channel with .NET 4.7+ [duplicate]
First of all, I already read most of the responses on the topic The request was aborted: Could not create SSL/TLS secure channel and Transport Layer Security (TLS) best practices with the .NET ...
0
votes
0
answers
15
views
Detect xhr progress of php form with javascript
I have a form with action php on submit
<form method="POST" action="action.php">
<input type="text" name="name" />
<input type="submit&...
-1
votes
0
answers
56
views
Is there any way to avoid preflight OPTION request? [duplicate]
I'm creating a react app using the Laravel API and sending requests through Axios but a preflight OPTION request is sent with every GET or POST request
although these preflight requests are not ...
0
votes
0
answers
29
views
How to send a POST request with after create or update of a user (RAILS)
This is my first time working with Requests and i'm a little confused, any guidance would be greatly appreciated.
Task: after a user is created i would like to send that user's information (name, ...
0
votes
1
answer
29
views
C# REST API File Upload from Client Code gets 400 Bad Request
I have a Rest API written in .Net core that accepts a File as input as Multipart/Form-data. The API works absolutely fine when I run it from Swagger/Postman.
Here is the API endpoint.
[HttpPost(&...
0
votes
0
answers
46
views
react-admin error: 'Cannot read properties of undifined (reading 'id')'
In react-admin library, when I try to post an object via http-request with the schema in the backend (id, firstname, lastname, email) with the id is autogenerated, It shows the error message : 'Cannot ...
0
votes
0
answers
99
views
golang http GET request but blocked by Cloudflare CAPTCHA
First, Sorry for my poor english. I am not good at english enough.
I am making web scraper with golang, with http and goquery package.
I sent the GET request But blocked by captcha.
after I googled it ...
-1
votes
0
answers
19
views
laravel unit testing get with parameters
I am trying to create a test using get request with parameters
I have a url, say: /api/endpoint/models,
and I want to append parameters, say:
$params = [
'fields' => ['id', 'name'],
'...
0
votes
0
answers
10
views
DevOps API - update user's entitlements using Power Automate
I would like to automate the process of updating users' entitlements in DevOps. Shortly saying, when someone requests the access to a specific project I want:
Flow to trigger approval -> when it is ...
0
votes
1
answer
29
views
Send Message to API in APIM from Azure Service Bus using Function App
Is there a way to send a payload that is received on the service buss queue to be sent to an API in APIM using function app? I'm planning to do this on the ServiceBusTrigger function. I already have ...
1
vote
1
answer
51
views
Azure Log Analytics Workspace Request Forbidden
I am trying to send logs from my application to an Azure Log Analytics Workspace, in order to do that I develop the following code based on what I found in https://docs.microsoft.com/en-us/azure/azure-...
0
votes
0
answers
46
views
WinRT | C++ - HTTP Post File - The certificate authority is invalid or incorrect
Basically I have two concerns, however the focus is on how to get around the certification.
I am having a hard time understanding how to make an HTTP post request in WinRT|C++. I have an ASP.Net-6-Web-...
0
votes
0
answers
21
views
Issue including escape characters in Post StringContent body
I need to send a body in the post that include a back slash in some of the values and I have an issue when converting to StringContent
This is my Object to send
public partial class StockLine
{
...
0
votes
0
answers
19
views
Web application - HttpResponseBase.AddHeader
I have a web application that uses HttpResponseBase.AddHeader.
I'm using this method to download a .csv file:
.AddHeader("content-disposition", "attachment; filename=" + fileName64)...
0
votes
0
answers
17
views
Parse RemoveBG data results to Inner HTML element (eg. img.src)
I am trying to use the Remove.bg API in a plain JS file, with the goal of passing image URLS as parameters and then outputting the resulting image to an IMG tag within the HTML body.
Unfortunately, ...
0
votes
1
answer
34
views
Get zip from googleapi autocomplete request
I am sending the following request to the google autocomplete api in attempts to get a street address with the zip code included.
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=917&...
0
votes
0
answers
18
views
How do i set time out in a HTTP request in react js?
I want to set time out for the following http request. I also want to catch 504 error, just in case and, also know normal error.
the HTTP request function:
const getClientData = (clientId) => {
...
0
votes
0
answers
22
views
Remove HashMap braces around values in Spring HttpRequest
So I'm a pretty unexperienced programmer and doing a project for my university java course.
Basic Login program where login data is stored in a mysql database on the server and accessed through ...
0
votes
1
answer
38
views
Http delete request to Google Directory API returning 412 Precondition is not met: location If-Match
I have been using Postman to send http requests to Google's Directory API. The GET request works fine (which shows that the admin token as well works fine) to get info for a user.
But, what I need to ...
0
votes
0
answers
70
views
What is the best practice using KQL to filter desired attack signature over (web)logs?
Recently I'm experimenting with logstach and Kibana on top of elastic over (web-)server logs. I tried to extract some attack signature like XSS & SQL injection like the following examples when ...
0
votes
1
answer
43
views
Remote Event doesnt use given arguments | Roblox
client:
local frame = script.Parent.Parent
script.Parent.MouseButton1Down:Connect(function()
script.Parent.SendReport:FireServer(game.Players.LocalPlayer,script.Parent.Parent.plr.Text, script....
0
votes
0
answers
28
views
C# WPF httprequest PUT remote server error 400
Hi I am having issues with my code stating this error An exception of type 'System.Net.WebException' occurred in System.Net.Requests.dll but was not handled in user code The remote server returned an ...
0
votes
1
answer
29
views
Azure Function App IFunctionInvocationFilter loses Request body after Request executes
I have a filter on an Azure Function that performs some tasks right after the the main function action has completed.
public async Task<IActionResult> DoStuff(
[HttpTrigger(...
0
votes
0
answers
26
views
scroll elastic search, call an API and store in elastic search asynchronous
I have a elastic search index (30GB, 1M entries), I have to update each document with calling an API (1s execution) and do some calculus on result.
I try many things like send request with aiohttp, ...
-1
votes
0
answers
11
views
Can I log JSESSION ID in console using angular interceptors? I can see it in the browser-> inspect but when I try to log, it returns null
I log it using request.headers.get('Set-Cookie') because JSESSIONID is present inside this key value in headers in chrome browser, but it returns null.
Meanwhile,
request.headers.get('pragma') return ...
0
votes
1
answer
50
views
How do I send fetched data from chrome extension background script to content script?
Once an event is triggered in my content script, it send a message request to the background script and waits for a response.
content.js
chrome.runtime.sendMessage({ userId: userId }, function (...
-1
votes
1
answer
29
views
https requests with axios not made in deployment mode in REACT
I'm fetching a json file using axios in my react project. The rquest is made and I get a response on my localhost. However, on github pages when I deploy, the request is not made.
I double checked ...
0
votes
0
answers
12
views
Getting filename while downloading a file using http request method in python
I am using request.get(url) to download a file from web.In url the filename is not present.Is there any way to get the filename. I am using below code to get the filename but no luck.
image_url = url
...
0
votes
0
answers
11
views
Fiddler is not showing HTTP traffic on iPhone
[BackGround]
I am using Fiddler4 on Windows and see iPhone HTTP traffic.
I open a third-party app which I want to inspect the API response.
[Problem]
I got the HTTP traffic(see the image below) ...