Questions tagged [http]

Hypertext Transfer Protocol (HTTP) is an application level network protocol that is used for the transfer of content on the World Wide Web.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Establishing a constant HTTPS connection between server and client using IIS

I have a single Windows application (.NET) on serving as a server and communicating with the database. I also have client Windows applications (.NET) which communicate with the server application. ...
0
votes
0answers
35 views

How to read dir from server path using node js

I am trying to get files from server path using nodejs but not coming. I have lot of npm packages in this path inside npmpackages folder.like npmpackages ->folder name package1.tgz package2....
0
votes
0answers
6 views

Capture cookies with tcpdump

i would like to capture all cookies (first and third party) with tcpdump. All cookies set in the HTTP header with Set-Cookie and/or Cookie and tcpdump can capture these headers. Am I right? I have ...
-1
votes
0answers
7 views

How to read a cookie?

I have working on browser game bot with a tutorial in autoit language. I used Live HTTP headers and in the tutorial the guy had Set-Cookie header in the Live Http headers. The cookie's name was ...
0
votes
0answers
11 views

How to properly avoid the HttpResponseSplitting on a Node.js middleware?

I'm working on a Vue project that uses a node.js server to encapsulate the urls. And the security tests are alerting me for some HRS(HttpResponseSplitting). I never really work with security and ...
0
votes
0answers
9 views

SLF4J pattern to log header key value pairs from Http Request

Hi I need the pattern that i can use in logging.pattern.console in the application.properties of my spring boot application. So, that i can access values from request header. values in the request ...
0
votes
0answers
20 views

How to fix Mixed Content errors on SSL folders in a multiple port on IIS?

In our current setup, we are using https for the main domain http://example.com. In one script we have called different URL with port http://example.com:6037. How can we use SSL for http://example.com:...
0
votes
1answer
17 views

How to simplify HTTP post of JSON to GraphQL mutation resolver

I would like to HTTP POST values directly as JSON to an addBook resolver already declared in my GraphQL Mutation. However, the examples I've seen (and proven) use serialisation of parameters from ...
0
votes
2answers
25 views

Debugger skipping methods after organizing code into new solutions

I had a perfectly working API that was making http calls & a UI that was using that API. everything was working and it was built really ugly ( 2 solutions for everything), so I wanted to seperate ...
-1
votes
0answers
11 views

Can GET, PUT and PATCH be replaced with POST HTTP method?

POST , PUT, PATCH and GET are all different. Idempotent and safety being the key difference makers. While writing RESTFul APIs , I encountered guidelines on when and where to use one of the HTTP ...
0
votes
0answers
7 views

How to handle HTTPEvent to process queue with next item in case any error occur for the intermediate queues

I am uploading multiple files to server and using HTTPEvent to handle the progress of files.It works fine if all the files are uploaded without error but when any error but when any error occurs or be ...
0
votes
1answer
19 views

How to do phone authentication in flutter using http post request?

I am trying but in response did not get entered number. I have one post api which give me an OTP which bring me in next screen for registration. //In below code i get response. createPost(String url,...
0
votes
1answer
21 views

Why google-oauth API requires redirect-url?

I'm trying to set up an authorization flow with google-oauth2 API. The task is to authorize users with google accounts in my web-application which consists of frontend and backend parts. The flow ...
0
votes
1answer
11 views

problem about closing idle connection for simple http server with netty

we are setting up a simple http server with netty, just like the example in netty source code. As we know, in http 1.1, the server didn't close the tcp connection after write response to client, so ...
4
votes
0answers
34 views

org.springframework.core.io.UrlResource Unable to read content from few websites

We are using org.springframework.core.io.UrlResource to read Images from websites. Following is the replication code import java.io.IOException; import java.net.URL; import org.springframework....
2
votes
1answer
44 views

How to change the handler in http.Handle() after server start?

I am using socketio "github.com/googollee/go-socket.io" in Go. For some reason, I have to make a new *socketio.server and register it to "/static/" which is already been registered with the old *...
0
votes
0answers
10 views

Difference between HTTP headers and HTTPContent.Headers [duplicate]

I am trying to understand what is the difference between headers in HttpRequest.Headers and HttpContent.Headers. Why is there two headers required for a HTTPRequest.
0
votes
1answer
19 views

file_get_contents(): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

I am getting the error Warning: file_get_contents(https://partner.uat.shopeemobile.com/api/v1/item/categories/get): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in C:\xampp\...
0
votes
0answers
34 views

Angular 6 can't call HTTP service twice?

I'm at a loss, I have a service that uses http client to fetch data: export class CategoryService { ... public getCategories(include?: string): Observable<ICategory[]> { return this....
0
votes
0answers
14 views

Nodejs Express - Is it expected for the leading whitespaces in HTTP headers to be stripped? [duplicate]

I am using Postman to make a POST request to my nodejs API. Notice how my password value has many leading spaces: Postman code also shows the spaces: But in my nodejs API using express, when I ...
1
vote
0answers
36 views

Need simple, powerful c# solution to dynamically parse and shorten Uri string

I am feeding XML Nodes from an xml document into a string that creates a URI string in the format "&Name=Value=...etc" for a HttpWebRequest. When I create the request the and once I reach ...
-2
votes
1answer
22 views

Why HTTP response returns 2 codes

This is a django project, a very simple one indeed, i got a question about the response code of the HTTP header. I am running it on localhost. # URL Patterns in the Project folder. urlpatterns = [ ...
0
votes
2answers
25 views

Calling http rest api from https rest api with error 502

I call my https REST APi that calls http api on another server using Postman, and it returns 502 bad gateway error. Authentication for https API is set in a header and accept:application/json as well. ...
0
votes
1answer
49 views

Can I Terminate HTTP transaction on server WITHOUT sending response to client?

I'm writing a public-facing transaction processor. Naturally, we run on https:// and the payload carries all relevant detail so we'll only process legitimate transactions. However, as a public ...
0
votes
0answers
25 views

Nativescript with Angular - usesCleartextTraffic=“true” flag in application tag not working in Emulator

I cannot get rid of Cleartext HTTP traffic error in my Nativescript application. I saw all the relevant threads and added the following configuration to my app: In AndroidManifest.xml added: <...
0
votes
0answers
33 views

Can subscribe handle all http errors?

I have read the Angular Documentation about handling errors, but I wanted to get some clarification. I make several http requests and then subscribe and handle the errors with subscribe. I was just ...
0
votes
0answers
29 views

Sending HTTP Requests to API from Razor Pages App

I am creating an application that presents users with a form. When the user submits the form, my application takes those values and formats them into a query string. This string is then used to make a ...
0
votes
0answers
21 views

Http message with with absolute URL instead of absolute path gives 404 error using IIS

When sending a message using the HttpClient from C# it will send the following to the server: Delete http://test.com/v1/client HTTP/1.1 Host: test.com Content-Length: 0 And this results in a 404 ...
0
votes
1answer
24 views

How do I send an http post request with image and with some parameters in Go?

I am trying to make an http post request with image and parameters in the form-data, but when I am adding image, my parameters are lost. testProduct := &Product{ Name: "TestProductName", ...
1
vote
2answers
53 views

How to make controller method sensitive to hex numbers in Spring?

Write own simple API using Spring. And a few days ago noticed this not a bug, but a feature. Controller method: @GetMapping(value = "/author/{authorId}", produces = MediaType.APPLICATION_JSON_VALUE) ...
0
votes
0answers
5 views

http://netcat.127.0.0.1.xip.io: forward host lookup failed: Unknown host

I am trying out the Client-Server tutorial at Udacity and attempting the RequestHeader Quiz in Lesson 2 at https://classroom.udacity.com/courses/ud897/lessons/8080328065/concepts/81986127650923 I ...
-1
votes
1answer
17 views

retrieve data from mongodb and insert inside a script from a html

hello guys i developed an android app that http post req some data like latitude, longitude and IMEI to server that post in database. everything is working fine, but now comes the second part of the ...
0
votes
0answers
25 views

PHP HTTP Request (stream_context_create) returns error params [on hold]

This is my code and I print_r the results, but it shows the error "error_param". I have print_r $context. It shows Resource id #2. So I think here got some issues. I want the output to be shown ...
0
votes
0answers
39 views

Is sending files over HTTP between two servers with actix a bad idea? If not, how do I do it? Can I compress the data?

I would like to be able to send a files between two HTTP servers built on top of the actix-web framework. Any of these servers may receive a request to upload a specific file to another of these ...
-1
votes
1answer
21 views

OPLON LBL ADC Rewriting 302 redirect location URLs ending in “/” in 301 without last “/” [on hold]

With LBL ADC (http reverse proxy), we need to rewrite the redirect URL coming from services (http header response 302, Location, see example below) when it ends with "/" and deleting the final "/". ...
1
vote
0answers
15 views

Dio options.contentType vs header “Content-Type”

I was trying to make a call to a REST service using the Dio plugin, but kept getting HTTP 400 response code. I thought I was doing everything right by setting the content type and response type ...
0
votes
0answers
5 views

What are the differences between an HTTP proxy (Web Proxy) and an HTTPS proxy (Secure Web Proxy)?

Both Apple and Firefox differentiate between HTTP proxy and HTTPS proxy. I know that the HTTP protocol supports proxying raw TCP traffic through the CONNECT method, which is normally used for ...
-1
votes
0answers
26 views

How to get resource ID from response after status code 201 created

I am getting this response after creating iron-man, 201,[Location:"http://localhost:8080/api/avenger/iron-man/89ec9182-c491-4b15-a121-a7c125d3fe0e", X-Content-Type-Options:"nosniff", X-XSS-Protection:"...
-1
votes
0answers
18 views

Image source from different domain

I have two domains, a.com and b.com (example), and two folders in the webhost: a and b. I associated a to a.com so that the root library is folder a. How can I display an image that is uploaded to the ...
0
votes
1answer
27 views

How to retrieve response headers in gatling and execute http call multiple times?

I'm trying to find a way to get response headers such as X-RateLimit-Limit, X-RateLimit-Remaining etc. from http call response. Not able to find from online resources or documentation, can someone ...
1
vote
0answers
15 views

How can I force Angular Universal to pre-render content from an external api?

I want to use SSR to improve search engine optimization on my angular single page application. I have enabled SSR by using Angular-Universal which is working to serve the static html but my components ...
0
votes
1answer
47 views

WCF Call the service on the client-side

I have a little wcf test application with rest-api endpoints. When i added basic auth to them i got error message that i must to use https instead http. Can i use basic auth without https on localhost ...
-1
votes
0answers
8 views

How to send array object in graphql query in http request

I have working graphql query as below mutation generateOnSiteGiftcards { generateOnSiteGiftcards( giftcards:[ { id: "b3ec30ac-3cc2-4d3d-b1c9-18c1c7b33212", pin: "131474312", }, ...
2
votes
0answers
35 views

Dynamic Form from Server Response

i created a DynamicForm Project with this Tutorial and it works fine. https://medium.com/@mail.bahurudeen/create-a-dynamic-form-with-configurable-fields-and-validations-using-angular-6-994db56834da ...
0
votes
0answers
16 views

AWS ApiGateway Execution failed due to configuration error: Unable to transform response

I am trying to implement Lambda Integration with Aws ApiGateway that i can able to parse input with my request mapping template but i can not return a proper json object with response mapping template ...
0
votes
1answer
34 views

Reduce 'waiting' time for a GET request to API [on hold]

I am using Angular for frontend and Django for backend. I am referencing an API with particular graph data I am trying to retrieve. I think I have done it in an efficient way and have tried ...
0
votes
1answer
30 views

Puid is null/empty. Puid must be present in the header for user to get authorized

I'm encountering a problem when I tried to ask he REST API from Microsoft Azure. I want to get data about cost management from Azure. I'm using Postman. Here is my auth request to have the auth token :...
0
votes
0answers
32 views

Trying to Download Web Content Asynchronously

I'm trying to download things in web asynchronously. I made class with it's own http client, and created it's object to each of my Tasks. Tasks run asynchronous and everything is perfect except http ...
0
votes
0answers
6 views

Traefik Matcher based on Query key

I know it is possible to specify matchers to define if a request should be forwarded to a backend/docker container (https://docs.traefik.io/basics/#matchers). with HeadersRegexp: I could define the ...
0
votes
0answers
17 views

http url for post req from android to mongodb via nodejs

hello guys i have and android app that http post request a json file to node.js that post into database. i've made something wrong to server1.js and i can't understand what but know it is doesn't show ...