Questions tagged [request]
A request is a message sent by a source to another object.
16,505
questions
0
votes
0
answers
15
views
Postman not sending request with `pm.sendRequest` if cookie jar is empty
Postman is not sending request with pm.sendRequest if cookie jar is empty.
I run a Test after every request in a collection, to check if the request was authorized. If not i get the necessary cookie ...
0
votes
0
answers
14
views
How can I get the source of a HTTP request?
The referer header does not always provide the full url of the site spawning the http request, and I would like to know if there is any way I could figure out the source url of the site that is making ...
1
vote
0
answers
10
views
request Data from Swagger
I am trying to make a request from Swaللثق, I learned from the videos on the internet that I must obtain a username and password, but my supervisor tells me that I do not need it, he told me i need ...
0
votes
2
answers
24
views
Node.js concurrent API GETs, return as soon as one responses
I have a list of APIs I want to call GET simultaneously on all of them and return as soon as one API finishes the request with a response code of 200.
I tried using a for-loop and break, but that ...
0
votes
1
answer
16
views
Delete cookies from RequestSpecification
RequestSpecification requestSpecification = given().cookie(myCookie);
requestSpecification.cookies(new Cookies());
This didn't work, I need only clear cookies in requestSpecification
0
votes
0
answers
17
views
'HTTP request failed. Client is already in Flutter
J:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.4/lib/src/io_client.dart:29:11: Error: String starting with ' must end with '.
'HTTP request failed. Client is already
0
votes
0
answers
8
views
Automate the writing of complex elastic requests
I get a string from my user that represents an elastic request. There can be the following types of requests:
Single term: TERM:MATCH_TERM ;
Several terms separated by AND: TERM:MATCH_TERM AND TERM:...
0
votes
0
answers
9
views
Wrong Mimetype for .RTF in web request
When a .rtf file is upload through an action in ASP.NET MVC, the mimetype for seems to be wrong (application/msword instead of application/rtf):
foreach (string _file in Request.Files)
...
0
votes
0
answers
14
views
what is the default http method in browsers for reaching a web page?
when typing a url in browser address bar and reaching that page , which method the browser will use to create the http request message (post or get)? what is the default method which is used in ...
0
votes
0
answers
11
views
Python send POST with header. There seems to be an empty header
I try to build a python script who sends a POST with parameters for extracting the result. With fiddler, I have extracted the post request who return that I want. The website uses https only.
POST ...
0
votes
0
answers
54
views
How do we pass the data with url while post or get request?
URL - http://164.100.47.193/Loksabha/Legislation/billintroduce.aspx
So I want to pass the highlighted data, and want to scrape the result I got. Like you see in the image there is a total of 13 bills, ...
0
votes
0
answers
8
views
Does driver.execute_script('return document.body.innerHTML;') send a request to the site? (Selenium)
I am repeatedly scraping a site for continuously updating live data. Does using driver.execute_script('return document.body.innerHTML;') send a request to the site or can I continuously run this ...
0
votes
0
answers
17
views
No thread-bound request found: Are you referring to request attributes outside of an actual web request
Hi have implemented producer and consumer in my existing spring boot application.
Producer sending message properly to topic and even consumer also listening consuming message from topic. Here ...
0
votes
0
answers
12
views
Extract variable from JSON result
I am trying to extract the elevation variable from the JSON response of the OpenElevation API:
coordinates = stations.iloc[2]['Lat'] + ', ' + stations.iloc[2]['Long']
url = 'https://api.open-elevation....
0
votes
0
answers
18
views
Express, NodeJS) How do I modify response before piping it to client?
Hi I am using code below to communicate with Google Place API and sending back relevant data to client.
app.get('/city',(req,res)=>{
const cityname = req.query.name;
console.log(apiKey);
request({
...
1
vote
0
answers
29
views
User Id dissapearing after refresh in React
I'm developing a React app with Nodejs backend and I've come across a problem. The app is for a language centre and it allows a client to log in and click on their profile to see the courses to which ...
0
votes
0
answers
25
views
Request a lot of URLs with asyncio
I have a list of 30,000 URLs and for each of the URLs of this list, I want obtain a list which contains the text of the page for every URL.
For this I use asyncio, it's already faster than with ...
1
vote
2
answers
31
views
How to get single value from request response
I started writing a program that will automate user actions, by now it's meant to be an easier menu to make faster actions by just sending requests to the official website by clicks on my own page. (...
0
votes
0
answers
12
views
How can I apply this function to several ip addresses , with mongoclient?
how can i apply my function to ip using several mongodb ports?
def user_info():
users_info = client.db.command({'usersInfo': {'forAllDBs': True}})
for user_info_dict in users_info.get('users', []...
2
votes
0
answers
34
views
Trying to get Twitch user name & check if its valid keeping running into an error Parse the body
I'm trying to parse so I can check if the username is valid or not. Though I have little to no experience working with JSON parasing in NodeJS. I'd appreciate some help on this issue. This has been a ...
0
votes
1
answer
49
views
RequestPermissions isn't giving a prompt Android Studio API 32
I'm working on Android Studio chipmunk using java language.
I'm trying to request permission for Nearby devices. So far I have already tried the AppCompat and regular requestpermissions method but ...
0
votes
2
answers
26
views
ASP.NET MVC cannot parse a Http Get request into Json Model
I am making a get request to a public themoviedb api via Http get request to get a List of Movies.
My Movies Model:
using System.ComponentModel.DataAnnotations;
using System.ComponentModel....
0
votes
1
answer
22
views
Laravel empty request after send ajax on keyup
I have empty request from ajax.
In site request send this input value but controller not catching any request value
my code:
public function searchUser(Request $request): JsonResponse
{
$string = $...
0
votes
0
answers
12
views
Printing json result in an request - pyspark
I would appreciate some help on this, having this API call below, how could I print the json results?
import requests
from pyspark.sql.types import StructType, StructField, DoubleType, IntegerType, ...
0
votes
0
answers
14
views
why am i getting error 404 on a client side function
//array of pictures
var imageArr = ['/images/louis.jpg', '/images/louis1.jpg','/images/louis2.jpg', '/images/louis3.jpg']
var h3 = document.querySelector('h3')
var image = document.querySelector('....
-1
votes
0
answers
12
views
What is equivalent request in postman to curl -T?
How to create in postman, a request equivalent to:
curl -T <name-file> <url-my-bucket-on-cloud>
To see the kind of request I am creating:
https://curl.se/docs/manpage.html#-T
I've tried ...
0
votes
1
answer
26
views
IIntercept and read data before reaching the dotnet core ASP controllers
I have a standard asp dotnet core rest api application.
I want to read the data from the body before it arrives in the controllers to create a generic validation on that data.
I accept that I have to ...
0
votes
3
answers
27
views
Use response from first axios in second axios call
i wrote an application in VueJS and i have to send first a get call to get the redirect url.
this.$axios.get('http://first-url.call').then(function(response) {
console.log(response.request.res....
-3
votes
0
answers
17
views
Is it possible to send API request using angular web worker? [closed]
Can someone share me how to send api request using web worker in angular 11+
-1
votes
0
answers
31
views
How to set the callback URL for deletion data on facebook authentication on laravel
I not received the callback request to my server when I make a deletion request from facbook setting
This is the setting
enter image description here
this a the error
enter image description here
...
0
votes
0
answers
19
views
Passing header and body to post request
I am trying to pass header and body to a post request in the second method with the following code but I am getting these errors for the last two lines of the second method
'header(java.lang.String)' ...
0
votes
0
answers
26
views
Error 403: The supplied authentication is not authorized to access this resource
I want to send a POST request to the following URL and get the result.
https://www.snapptrip.com/flights/THR-tehran/KIH-kish-island?roundTrip=false&adultCount=1&childCount=0&inLapCount=0&...
1
vote
2
answers
42
views
How to iterate and loop through every array value in python
while True:
for i in range(len(listing_ids)):
response = requests.get(f'apiurl/{listing_ids[i]}/pr', cookies=cookies, headers=headers)
response = response.json()
...
0
votes
0
answers
19
views
Squid Proxy Filter by HTTPS Payload Request
Is there a way for Squid Proxy to intercept and filter HTTPS payload from request made before it is being sent? Just like the way mitmproxy does.
I found out it's possible to log the payload with ssl-...
0
votes
0
answers
22
views
Where would I parse a CSV file
I am developing a super basic web app with React and a python backend with flask. I am trying to implement an autocomplete function, and am struggling to figure out "where" I would parse a ...
0
votes
1
answer
31
views
Can't scrape more than 2 indeed pages
I am doing some web scraping in Python to find certain Keywords in Job descriptions in indeed job postings.
However I can only scrape through 2 pages. If I increment the number of pages to 3 (variable ...
1
vote
0
answers
26
views
PATCH request behaves like GET in MERN CRUD app
In a MERN CRUD app with JWT authentication I am trying to use PATCH request to edit the text field in my MongoDB documents. But it behaves weirdly.
Another PATCH request that changes the status ...
0
votes
1
answer
20
views
Adding max_retries and retry_on_timeout to Elastic request (Python)
I want to post a request to Elastic API via request module:
headers = {'Accept': "application/json", 'Content-type': "application/json"}
respond = requests.post(url=ES_CLIENT + &...
0
votes
1
answer
25
views
APIM - how to send the same request to two different backends (using the same main request body)
Azure APIM policy
i want to create an operation in an API that will post the same request to two different backends.
I tried to use and set a new url, But i am having truouble in forwarding the ...
0
votes
0
answers
29
views
request URL disconnected [WinError 10054]
The development environment is Windows 10.
I wrote a request url written by fastapi.
This error has occurred.
[WinError 10054] The current connection was forcibly disconnected by the remote host.
...
0
votes
1
answer
28
views
Why is my API request being called 4 times?
I'm working on a project that makes an api request, but my request is being called 4 times, why is this happening?
const [movies, setMovies] = useState([]);
const [searchTerm, setSearchTerm] = ...
-1
votes
0
answers
41
views
Don't recieve the request body in node js backend
I'm currently working on a node js project and I'm stuck in the project since when I send the post request to save a seller from the postman I don't receive the body of the request (although I send ...
-1
votes
0
answers
26
views
Flask request.json.get returning nan instead of NULL [closed]
I have been using Flask request.json.get to return POST parameters to my application, but I believe on a recent update from Flask or possibly from upgrading another package it is now returning nan ...
0
votes
0
answers
15
views
Declaration on Extend Express Request Object with Typescript
My question is...
Is possible use more than one object inside interface Request or how must I do?
Ex:
folder: @types,
folder: express,
file: index.d.ts
declare namespace Express {
export ...
0
votes
0
answers
13
views
nodejs return response body in request module [duplicate]
NodeJS. I have a function named 'createDynamicLink' and I want this function to return the response body that returned in request object.
function createDynamicLink(){
.
.
.
.
request({
...
0
votes
1
answer
22
views
Pass paramenter to "Show detail" modal in table
I've made the following dynamic table, which rows are created for each record found in database.
$(document).ready(function () {
var $form = $('#my-form');
$form.submit(function () {
$.post($(this)...
0
votes
0
answers
40
views
Laravel 9.x - Class binding not working in middleware
i am having issue in my laravel middleware.
i try to extends Illuminate\Http\Request to my custom class request
<?php
namespace LaravelCommon\Http\Request;
use App\Repositories\User\...
0
votes
1
answer
26
views
Is it possible to use custom API method name to allow multiple PUT methods in single API controller
firstly I can get around this issue by creating multiple API controllers in my web application. However, I wondered if it is possible to do the following:
I am trying to have two PUT methods in my API ...
0
votes
0
answers
34
views
Swift Alamofire request I can't access JSON fields
I need access to field .ID or .Name but alamofire.request return me type __NSArrayI and I can t do anything
My code:
request( url, method: .get, headers: header)
.responseJSON {
...
0
votes
0
answers
23
views
How can I clean this text?
How do I clean this text?
input = "Ti as\u00edn y\u00e9 as\u00edn k\u00f3 t\u00f3 \u1e63\u1eb9nu gb\u1ecd\u1ecdr\u1ecd; ti \u1ecd\u0300k\u00f9n y\u00e9 \u1ecd\u0300k\u00f9n k\u00f3 t\u00f3 fi ...