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.

-1
votes
0answers
5 views

How to get response headers when getting a file back from Angular HttpClient Post?

Following this example, My Backend sends me ArrayBuffer for Excel file when I hit a post request also in the response header is the file name and content-type of the file. But According to the ...
0
votes
0answers
6 views

iPhone message send fails - HTTP load failed (error code: -1005

I'm having a problem that occurs consistently at about a 125k HTTPbody size. Below that limit I do not have the problem. We recently changed to different servers (Azure). Having a network guy sniff ...
0
votes
0answers
8 views

How to implement request.args.get('next')

I am trying to implement a feature i see in social media platforms, in this case, say a user who is not logged in wants to post or leave a comment, a login popup(in my case a modal) appears and they ...
1
vote
1answer
11 views

How to safely encode the content disposition HTTP header with Python?

response['Content-Disposition'] ='attachment; filename=%s' % filename In this Django response, the header causes the intended download but commas in the filename makes Chromium throw a low-level ...
0
votes
1answer
23 views

HttpExchange.getRemoteAddress() takes long time

I am creating server running on Java HttpServer class, everything works fine but I've noticed that call to exchange.getRemoteAddress().getAddress().getCanonicalHostName() takes about 4000 ms, however ...
0
votes
0answers
32 views

Undefined index: id in [duplicate]

Notice: Undefined index: id in E:\xampp\htdocs\qrcodeee\qrcodeee.php on line 11 Notice: Undefined index: Name in E:\xampp\htdocs\qrcodeee\qrcodeee.php on line 12 Notice: Undefined index: ...
0
votes
1answer
18 views

I can't get my “event.preventDefault” to work when submitting a form through button in overlay

As the title says, I can't get my event.preventDefault to work on a submit POST request of my form. Using standard js, flask, css, and html. ASFAIK there are no errors anywhere. If I can just have ...
0
votes
1answer
33 views

Why is TLS relevant in non-secure http?

I am using WebClient to get data from a web resource thus: var wc = new System.Net.WebClient(); var stream = wc.OpenRead("http://..."); // etc.. It used to work until recently, when the server would ...
0
votes
1answer
8 views

Get method for an API keeps getting 202 response

I have an http client written in c#(.net core) and I am trying to call a GET http API to download a file from it. But every first time I call this API it returns me a status code 202 and I have ...
-2
votes
1answer
18 views

jQuery how to serialize a not-DOM object to post for AJAX?

I've seen this technique many time on other questions to make an AJAX POST: var postData = $('#my-form').serializeObject(); $.post(url, postData, function(){}); But what I want to do is this. var ...
0
votes
2answers
44 views

I'm struggling to append an id from mysql to the URL

I'm trying to append an id (and other info) to the url, so I can access it later, but I can't find the right method after some research. I've tried to use Get() method, query(), Add(), but I couldn'...
0
votes
0answers
14 views

HTTPS secure connections with Python HTTP Simple Server

Thanks to your answers to my last question, I was able to get persistent http connections working with the Python Simple HTTP server. Im now trying to extend it to work with secure HTTP connections. ...
1
vote
0answers
15 views

How to fix 'Error in open.connection(x, “rb”) : HTTP error 503.' when scraping websites with rvest?

Trying to scrape through a series of websites. Links are in a data frame called linksRaw. It works when running just a single url through the html_node and html_text. I have added a for loop in order ...
0
votes
1answer
21 views

get http raw (unparsed) response in http.client or python-requests

I'm using Python to making HTTP requests. I need to raw HTTP response that looks like this: HTTP/1.1 200 OK Date: Mon, 19 Jul 2004 16:18:20 GMT Server: Apache Last-Modified: Sat, 10 Jul 2004 17:29:19 ...
-1
votes
2answers
32 views

I need to post url with rest API call. it was working in angular 1.6 but not able to post it with Angular 7

I need to post url with angular 7 to the server but getting some error as "blocked by CORS policy" while it was working in angular 1.6 Getting issue as :Access to XMLHttpRequest has been blocked by ...
0
votes
1answer
30 views

Python Requests timeout parameter is being ignored

I'm using Python 2.7, I want every request to timeout after some seconds, but the requests timeout almost immediately. Following is my code. requestsTimeout = 5 link ='http://' + IP + '/api/v1.0/...
-1
votes
0answers
18 views

http client port range

I'm sending HTTP request, the server port is the default 80 port, but the client port is not permanent (in this case 37190) is there a range for client ports? request wget 10.10.197.10 -t 1 ...
-1
votes
0answers
21 views

Read POST http data [on hold]

I like to read a POST data sending to my OBU in C language and TCP Socket. In the image below I have two POSTs to read . I Don't know how . Any idea please?
0
votes
0answers
17 views

The source URI string appears to be malformed

I have been working on a webcam API's integration. I'm using Cake\Http\Client to hit the API's. $parameters = ['action' => 'test', 'secret_key' => TEST_KEY, 'performer_id' => $performerId];...
0
votes
0answers
19 views

Unexpected token < error for JS calls when loading index.html file from assets folder using NanoHTTPD server

I'm trying to develop an offline android app where i would show an html page on a webview which has css and js calls using NanoHTTPD web server. The html file index.html is in the assets folder, while ...
-1
votes
0answers
16 views

Need to force HTTP to respond to all PUT requests error-status code as 500 message. how to simulate such a thing?

I have a TFTP server sending TFTP messages from one server using HTTP PUT. I want the other server where the HTTPD is running to always send status code 500 error. How do I simulate this in linux. I ...
0
votes
1answer
30 views

Using Socket IO and aiohttp for data transfer between node JS and Python

My overall goal is to generate a stream of random numbers in a JavaScript file (which is run using node) and send them to a python script in asynchronous time intervals. Once the numbers are in python,...
0
votes
2answers
32 views

How can I submit parameters with an HTML script?

I am having trouble submitting parameters to a website via an html code simulating an XSRF attack. I have the html below in which I have set the parameters for the action including an account #, ...
0
votes
1answer
14 views

Pass authorization via xmlhttp

I wish to send a login request using xmlhttp. However, the VBA code I put didn't work. Here is my code: Public Sub xmlhttpRequest() Dim xmlhttp As New MSXML2.xmlhttp, myurl As String, user As String,...
0
votes
0answers
12 views

What's the difference between HTTP session and web session?

I understand that a HTTP session is the idea to associate a state of a web application for different users which is done outside the protocol in software as HTTP is stateless. I didn't notice before ...
0
votes
0answers
12 views

How to automatically repeat a http post request I composed in fiddler once every 5 minutes?

There does not seem to be an option there, I can only execute once.
0
votes
0answers
17 views

custom http header with CONNECT

Is it possible to make the following request ?: CONNECT ssh.server:port HTTP / 1.1 (GET or HEAD some request) path protocol ... Host: domain ... note: CONNECT can be at the beginning or at the ...
-1
votes
0answers
16 views

Get xml string resource from database

I want to create and Android app that makes an http request on launch, and creates a kind of String.xml resource file. This file Should then be used to set all the TextViews in the app. Then if i ...
0
votes
0answers
19 views

Cloudflare shows error 521 when accessing a fully working server

I moved my website to a different cloudflare account, set everything up just like it was on the old account, and even after a couple hours, the website keeps returning a 521 error. I did not change ...
0
votes
0answers
11 views

when uploading file with HTTP Post, how are contents of file sent?

I'm testing HTTP POST file upload with postman, with 2 text parameters and 1 file parameter. I could get raw request body, but I want to know what exactly the content of file is. Is it sent as base64?...
0
votes
0answers
11 views

Instagram HTTP request takes too long

Sending simple HTTP request to Instagram(for example: https://www.instagram.com/instagram/?__a=1) was about 2-3 seconds long, but now when i do it using file_get_content() it is about 12-16 seconds. I ...
0
votes
3answers
23 views

How to read a file json in Angular 7 by using http module?

Read JSON file in Angular 7 I am writing a simple program to output an array of data from a json file to a browser. When I try to read a json file, I get an error: Cannot read property 'code' of ...
0
votes
0answers
24 views

Sending Binary with POST request with python [on hold]

I want to send a dict of binary files I get from images with a POST request. self.current_file = {} for _,_,names in os.walk(self.file_name): for name in names: with open(self.file_name + ...
0
votes
0answers
43 views

Angular 7 Http Post Request - Subscribe only catching OPTIONS response not the actual response

I am sending a post request to upload a file from my angular 7 front end. The network console on chrome shows that it is sending an OPTIONS request first before sending my post request. I can also see ...
0
votes
1answer
40 views

How to debug an unexpected time gap in browser network operations in ReactJs/Redux?

I'm using React/Redux for my app, the app is bundled in the main.5ae1d536.js file. As you can see, there is quite a big gap (almost 1 second!) between the download of the app and the rest of the ...
-1
votes
1answer
26 views

reading web content returns JS in disabled

I wrote the following code which reads a webpage contents: string url ="https://hackerone.com/directory?asset_type=URL&order_direction=DESC&order_field=started_accepting_at"; HttpClient ...
1
vote
1answer
12 views

The http requests that the browser sends refers to what website?

Is there any way to know for what website the browser sent a http request to my proxy server?
0
votes
0answers
19 views

How to set header 'Accept-Range' to bytes in HTTPResponse on mp3(media) request in django

I'm having trouble in adding a seek feature to my music player.The problem occurs for the google chrome while other browsers(Microsoft Edge,firefox,etc) works fine.The problem can be seen here in ...
0
votes
0answers
21 views

how we get server data without using any background thread and return function value after get server data

I need sever time at every button click for validation to solve the problem of change mobile time manually. I need one function that gets a date from the server and returns me the server date. I ...
0
votes
0answers
5 views

.NET core integration service who waits for changes during request time

So I have quite a tough situation with integrating other system with my web service. In simple words, I have to create endpoint who calls other integration endpoint(HTTP), gets the response and then ...
0
votes
0answers
17 views

POST to mobile endpoint

I'm and looking for a library that will allow me to POST to a mobile user-agent like an iPhone. I am working on a bot that bypasses a websites captcha recapcha through posting a fake g-recaptcha-...
0
votes
1answer
23 views

How do I authenticate using MSXML2.XMLHTTP and VBA?

I need to authenticate on the endpoint https://graph.microsoft.com/v1.0/me/drive/root/children using MSXML2.XMLHTTP and VBA. I have the access token already but I am struggling to find out the string ...
0
votes
1answer
19 views

how to make an OPTIONS request with HttpClient

How do I send an OPTIONS request with System.Net.Http.HttpClient exposed methods for HttpClient DeleteAsync GetAsync PostAsync PutAsync few others as well..... I was expecting a OptionsAsync ...
-1
votes
1answer
25 views

C sockets not receiving all data before HTTP site begins hanging [duplicate]

I'm trying to create a server in C sockets that will allow file uploads through HTTP. The problem I'm having is that I get a very good chunk of the HTTP content but then it just stops sending and ...
0
votes
0answers
8 views

Replicating Chrome http authentication using python

At work, I have a process that requires me to build a table based on information I find on an intranet website. So far I have done this by hand: I get the information using the form on the website and ...
0
votes
1answer
17 views

Python HTTP Simple Server Persistent Connections

Im trying to create a simple HTTP server that will receive POST messages and provide a simple response. Im using the standard HTTPServer with python. The client connects using a session() which ...
0
votes
0answers
12 views

Logstash only captures first event in newline delimited json request

I'm trying to set up a logstash pipeline and want to accept requests that contain multiple json objects which are newline delimited. The format for the request bodies we are seeing consists of ...
0
votes
0answers
40 views

JSON data, automatically converting integer data into datetime format (Solved)

In HTTP post/put, some fields in the data sent as JSON are automatically converted to datetime format. Nodejs: 6.11.3 Mongodb: 4.0.9 Angularjs: 1.5.5 Server: Ubuntu 16.04 Dev Server: MacOS Mojave "...
3
votes
1answer
38 views

Number of concurrent connection per handler method in Go

func handleForServer1(res http.ResponseWriter, req *http.Request) { rPayload := parseRequestBody(req) serve("http://server1:8080", res, req) } func handleForServer2(res http.ResponseWriter, ...
0
votes
0answers
18 views

NetworkEvent and receiving data problems

//STEP1: Initialisation Winsock iwsaStartup = WSAStartup(MAKEWORD(2,2), &winSockData); if (iwsaStartup != 0) { printf("APICP: open_socket(): WSAStratup Failed\r\n"); } //LOG_INFO("...

http://mssss.yulina-kosm.ru