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
5 views

Ionic 4 Angular http get in iOS for wordpress

basically I'm using this tutorial https://devdactic.com/ionic-4-wordpress-client/ Everything works perfect in Android as well in release APP and in iOS as long I use in iOS life reload. As soon as I ...
0
votes
0answers
6 views

Verification of the right format for a HTTP/1.1 response format? And online methods of testing?

I want to write a simple web server in language such as C. I want to know if I have the right syntax for a 200 OK and 404 Not Found. The rfc2616 says response must be: Response = Status-Line ...
0
votes
0answers
16 views

Replace a default Redux initialState file with an API call?

I am using a template React Project with Redux and there is a default menu file that is loaded with the initial state. I want to replace it with an API call and have that replace the exact file from ...
0
votes
1answer
13 views

Error when i push in GITLAB (RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error)

When I push in gitlab, I get the error: cip$ git push Counting objects: 2149, done. Delta compression using up to 4 threads. Compressing objects: 100% (2105/2105), done. Writing objects: 100%...
0
votes
0answers
4 views

How can I send a HTTP POST request in Electron including additional parameters?

I am currently trying to perform a HTTP request using Electron. I have already read the online documentation of Electron, which suggests to use electron.net.request(options). However, my request ...
-1
votes
0answers
11 views

How get http response header status line in lua?

ngx.resp.get_headers() not found http status line I need get HTTP/1.1 200 OK field How can I get it?
0
votes
1answer
11 views

HERE matrix routing testing url with apiKey

I am migrating my appCode and appId to apiKey. But I can't find the testing URL. I am currenlty using matrix.route.cit.api.here.com which doesn't fit with the new apiKey. Does someone have a valid URL ...
0
votes
0answers
16 views

How to change default cache policy in Okhttp?

I am using Picasso for image loading. Picasso doesn't have a disk cache. OkHttp maintains an HTTP cache that is controlled by HTTP cache headers. I want to set an expiry for disk cached images so ...
0
votes
0answers
7 views

How to get status code when using EventSource in chrome?

I have tried to use the native EventSource in Google Chrome, If the server response with an error, details about this response will be shown at response header in chrome inspect error details but ...
1
vote
1answer
22 views

Limit of HTTPS request per seconds

I am doing a project where I need to send device parameters to the server. I will be using Rasberry Pi for that and flask framework. 1. I want to know is there any limitation of HTTPS POST requests ...
-1
votes
1answer
21 views

requests works over https but gets blocked over http due to cors?

i have a backend server with some apis written in laravel when i try to make a request over https it works fine but when i make the same request over http it gets blocked by cors saying Access-...
-1
votes
0answers
13 views

Download Files from directory in linux using http request (.Net Core Api)

I am hosting my application on my dedicated root server, and I want to have the ability to download files from a specific directory. The Idea is that I want to upload a file, and then reretrieve it ...
0
votes
0answers
7 views

Generating access tokens for LinkedIn API

I need to generate the access tokens for my application. I followed the steps on access token LinkedIn API I got the code value after the first step. When I used this code value in the second step in ...
0
votes
0answers
7 views

How to return a response without body in WCF?

I'd like to handle HEAD requests in my WCF app. According to the specs, a HEAD response shall not contain a body. I haven't managed to actually send a response without a body so far. My ...
3
votes
0answers
24 views

Why does 'stream' implement 'pipe' when only stream.Readable are able to pipe?

This is quite confusing behavior when learning about streams/http on NodeJS. By default intellisense will auto-complete pipe on http.ClientRequest and http.ServerResponse , this is misleading as it ...
0
votes
1answer
30 views

Why express say `Cannot set headers after they are sent to the client` in my code?

I'm creating some kind of SignIn request/response in Express. When user give valid username & password, then server will return valid authorization code. This is code. export const getAuthKey = ...
0
votes
0answers
18 views

Cors error when doing POST or PUT very long text ( Express.js , Draft.js)

I'm trying to make rich editor with Draft.js.To save post, I just encoded image with base64 and try to save it on on LONGTEXT column the string is so long just like below The problem is when I ...
-1
votes
0answers
20 views

How to download big data in IOS

The server puts a particularly large amount of data in the cached json file. Because the data is too large, it crashes after receiving the data once and then analyzing the data and storing the ...
0
votes
0answers
23 views

How to get HTTP header from angular application from a external linked website

I have an angular application, and need Site Minder authentication. The current solution is like below flow: User hit URL --> Reverse Proxy server (with Site Minder web agent) --> Site Minder ...
1
vote
2answers
30 views

How to single out which Java class definition is missing/which dependencies to import?

Though I understand OOP, I'm very new to Java's way of implementing external libraries. I am currently just trying to mess around with HTTP requests to the IEX trading API, as shown in the Java option ...
-1
votes
1answer
23 views

Adding header to json through Python

I am very new to http requests and wanted to know how you would add a json header with python. So far I have been able to get data, such as downloading photos, but I'm not sure how to add headers. Any ...
0
votes
1answer
7 views

How to authenticate JHipster monolithic web applications (JWT tokens) to consuming services using CURL or other HTTP REST client

How to quickly consume JHipster generated applications using JWT tokens with HTTP clients such as CURL, Insomnia, Postman and others?
0
votes
1answer
31 views

How to accept requests from specific domains using Django Rest Framework?

So I have configured my project using CORS headers to accept request from all domains. However, I want to filter out requests in views using user provided data. Let me explain: each user can create ...
0
votes
0answers
11 views

How can I add a filesystem to my HTTP-listener/ add frameworks in C# [duplicate]

I have an Http-listener in c#. It listens on http://{ip-address}:8080/index/. I can send websites as response to httpclients in the form of strings, and when opening the uri in the browser I get the ...
-3
votes
0answers
16 views

I was just running http requests using nodejs !!Can someone please explain me ,how to proceed further?

enter image description hereCannot find module 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\app1.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17) at Function.Module....
3
votes
1answer
29 views

Bottle-WebSocket: How to ensure an HTTP request is from the same session as ws connection?

I built an web application using Python Bottle framework. I used bottle-websocket plugin for WebSocket communication with clients. Here is a part of my code. from bottle import Bottle, request, run ...
1
vote
2answers
30 views

Flutter http request upload mp3 file

Im using this api to upload a mp3 file using this method Future<void> uploadRecord(String matchId, String filePath) async { Uri url = Uri.parse( Urls.baseurl + EndPoints....
1
vote
2answers
43 views

How to use standard library to parse URL params in Ruby?

I am using the following code with "uri" and "CGI" to parse the params of the URL: require 'socket' require 'uri' require 'CGI' server = TCPServer.new 8888 while session = server.accept request = ...
-1
votes
0answers
11 views

Reading query string parameters in Azure Logic App Http Request [closed]

While creating facebook webhook GET request https://www.your-clever-domain-name.com/webhookshub.mode=subscribe&hub.challenge=1158201444&hub.verify_token=meatyhamhock is sent to azure logic ...
0
votes
0answers
10 views

GET response 401 on Edge but not on other browsers

I'm trying to download files from Boursorama. The URL is https://www.boursorama.com/bourse/action/graph/ws/download?length=1825&period=0&symbol=1rTAASI When I open this URL in Chrome/IE/...
0
votes
1answer
19 views

How to parse an ETag for use inside If-None-Match header

I have tried obtaining an ETag from various urls (RSS feeds), and obatained a different format for each one W/"2c34-Lgd4oF7wqtfEvHc5kEphPr/7eaY" W/"159a-VcHeTnlFfRm4lQABXPoMZNXbNSM" o0Vn/cflaoT/...
1
vote
1answer
32 views

How to fetch a web page from a web site with URL using the web browser?

I have an assignment that reads "You want to use your web browser to fetch a web page from a site called "www.wagstaff.info". Its web server is at TCP port 8080, and the page you are looking for is ...
0
votes
1answer
20 views

Cant get full body of http get request

whenever I try to use http request the response doesn't contain the full body of the page , am I doing something wrong ?! import 'package:http/http.dart' as http; Future<void> request() async ...
1
vote
1answer
37 views

patch() got an unexpected keyword argument

I'm trying to write a test in which an object is updated using patch. class Search(models.Model): id_search = models.AutoField(primary_key=True) id_user = models.IntegerField(null=False) ....
1
vote
1answer
19 views

How to correctly use a callback function in NodeJS

Alright. Trying to make a very simple request here. First code with asynchronous Nodejs. According to everywhere I've checked, I'm doing this right. None of them explained really how callbacks work, ...
-1
votes
2answers
26 views

How To Check HTTP status of a list with url's using python3?

This is My Code import requests import sys import time while True: try: lists = open("master1.lst") for line in lists: time.sleep(2) r = requests.get(line)...
0
votes
1answer
19 views

How does this data frame example in the Websocket RFC equal “Hello”?

The first example of Section 5.7 of Websocket Protocol RFC 6455 reads: A single-frame unmasked text message 0x81 0x05 0x48 0x65 0x6c 0x6c 0x6f (contains "Hello") What are the first two ...
4
votes
3answers
87 views

Angular HttpClient calls are missing query string and Authorization header

When Angular makes a GET call using HttpClient, the query parameters and Authorization header are missing on the request in our QA environment. When running Angular locally, pointed to the QA APIs, it ...
1
vote
0answers
18 views

How to redirect a webpage using a proxy without servlet in java?

My project is to create a proxy cache and to redirect the web page I am requesting.For example,if I type in and request stackoverflow.com , the proxy should redirect me to youtube.com . I have already ...
0
votes
1answer
66 views

Prevent error 403 on invalid URL parameter

I've links to my website which are clicked by users and not directly in my control to be changed or encoded properly. URL looks like this http://mywebsite.com?email=%%[email protected] I want ...
0
votes
1answer
59 views

How to fix “no implicit conversion of String into Hash”

I am trying to run a test with RSpec but it always returns the same error: DevicesController#update when user is a manager must update any device Failure/Error: put device_path device_id, params:...
0
votes
0answers
24 views

HTTP response from server is not returned

I'm trying to get an http response from this script in a browser, why doesn’t it work? $http = "HTTP/1.1 404 Not Found"; $http .= "Host: localhost"; $http .= "Connection: close"; $sock = ...
0
votes
1answer
9 views

Whats the best way to add listener to external resource?

I have a django project and external resource. The external resource has XML data which changes time to time but it still static if nothing happened. I need to collect new data if something happened. ...
0
votes
2answers
29 views

Controller opens file in the browser instead of downloading it

I have created a controller to download a file, it works fine for small files but for bigger ones instead of downloading, it just opens the file in the browser(2kB file was downloaded but 12kB opened)....
0
votes
0answers
13 views

Parse formdata from volley http response android

I am getting formdata from http response in android. Please let me know the way to get post data from formdata. Following is the response received from http URL request (Volley has been used for http ...
0
votes
0answers
10 views

Is there a way to handle a https forwarding to http without a browser error message?

Scenario: We have two domains, example.com (used as simple Webpage) and example.de (used as a Shop). The Shop was secured with a ssl certificate und used https connection. We closed the Shop and want ...
0
votes
0answers
15 views

How to retrieve cookies from an HttpURLConnection [Java 11]

I need to retrieve the cookie set after a POST request to a server (successful login request). In Postman I'm able to see the response header but also the response cookies. In my code I can obtain ...
0
votes
0answers
28 views

How is the signature in an https request encrypted?

I captured this https request from my Android phone. GET https://picaapi.picacomic.com/init?platform=android HTTP/1.1 accept: application/vnd.picacomic.com.v1+json time: 1579258278 nonce: ...
0
votes
2answers
29 views

SOAP WSDL request - Method returns bad request error

I'm trying to make a soap call and it returns a "Bad request" error. The example call is: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://centric....
0
votes
1answer
45 views

Correct REST API Response HTTP Status Code

I am creating a REST API which will run a simple database query and return some data, based on the payload. If my SQL query returns no results then I am returning the plain text "No Records Found". ...