68,095 questions
1
vote
0
answers
52
views
Possible to send custom header from the browser when loading images/videos?
When calling fetch("http://server.com/api) we can send custom headers, like "authorization".
But when including images, videos, or other things in the HTML, there is no control over the ...
0
votes
0
answers
144
views
How to set up HLS stream?
I am working on a project where the main goal is to create a website where users will be able to watch live streams. These live streams will come from different sources, over different protocols. I ...
0
votes
0
answers
59
views
How to disable HTTPS for the OpenBMC Event service and switch to using HTTP
I want to change the OpenBMC Event service Subscription functionality from HTTPS to the HTTP method that does not require certificates, to facilitate sending Events and receiving Event information via ...
0
votes
1
answer
128
views
Why are Dart http requests for GeminiAPI on Ubuntu VPS being blocked
I am running a simple Dart server with package shelf. The server makes a request to generativelanguage.googleapis.com. Everything is working fine on my own machine. When the Dart program is running on ...
1
vote
1
answer
95
views
HttpClient hanging while fetching Url
I'm trying to ping this url for live events https://www.imf.org/en/live with this code:
using var httpClientHandler = new HttpClientHandler() { MaxAutomaticRedirections = 10, AllowAutoRedirect = true};...
0
votes
1
answer
116
views
How to disable caching on a static website?
I want disable caching on my static website. Currently I'm using the myFile.js?v=123 trick, and update the number every time I make a change. But I'm sure there's a better way of doing this.
This ...
1
vote
0
answers
53
views
exception error when using imgur on flutter web
i am implementing image upload in my app. i want to use imgur's api. i got the code from the postman collection in their docs. but i am getting - DioException [connection error]: The connection ...
0
votes
1
answer
80
views
How to get Mutlipart data as a file in ktor server efficiently?
Get file from multipart post request
Receive the file from PartData through streamProvider() not working
val fileName = part.originalFileName ?: "unknown"
val file = File(filename)
file....
1
vote
1
answer
54
views
cURL error(28) in laravel when accessing internal php files
I am trying to do a POST request to my classless personal-api.php file located at http:ip.address:port\public\api\personal\personal-api.php but it returns a cURL error(28)
I am using Http facade to ...
1
vote
1
answer
250
views
URLSession works for request but not NWConnection
I am trying to convert a simple URLSession request in Swift to using NWConnection. This is because I want to make the request using a Proxy that requires Authentication. I posted this SO Question ...
2
votes
0
answers
37
views
Publicly hosted podcasts blacklist Twilio?
I'm setting up a system that plays a publicly-hosted podcast over the phone through Twilio, using the code from this project. However, on any podcast that I can find, the audio is inaccessible to ...
2
votes
1
answer
64
views
Returning partial RSS with If-Modified-Since: good practice?
I've recently been debugging a problem with an application that parses RSS feeds, and encountered some behaviour in a third-party RSS feed which seems rather odd to me. I would be interested in ...
0
votes
1
answer
107
views
Bad HTTP request when using Swift
I am trying to use a proxy with auth in Swift. I finally got it working using NWConnection. And I can see from my proxy server that it's actually getting the request from my iOS app when I call this ...
0
votes
1
answer
109
views
How to close an HTTP TCP stream on the server after a request
I'm creating an Open Metrics HTTP source for a Prometheus server in Rust. I'd rather avoid pulling in a whole web server library (crate) because I control the infrastructure and pretending to answer ...
0
votes
1
answer
88
views
Python Requests GET with Proxy - HTTPS scheme returns expected result but HTTP returns header
When setting any URL to use HTTPS as the scheme (i.e., https://), I get my desired response (i.e., page source), but any http url (i.e., http://) fails or I receive a header and I don't understand why ...
0
votes
1
answer
106
views
what is the ideal buffer size to recieve data for a http server?
I was making a http server in c and this came to mind. Im not sure if it's possible to recieve unlimited bytes.
The server just gets the path and sends the requiered file, so in this case i dont think ...
-1
votes
1
answer
63
views
Website returns 200 OK but only 1 byte of content in Firefox and Edge on Windows 11
I'm experiencing a very strange issue where a specific website, www.trysuri.com, returns a 200 OK status code but only a single byte of content. This happens in both Firefox and Edge on my Windows 11 ...
-1
votes
2
answers
679
views
HTTP/1.1 header parser received no bytes
I get this error all the time tried everything switching JVMs and stuff changing code itself but nothing really works Chat GPT also doesn't help. If someone know what's the dead with this please help. ...
1
vote
0
answers
26
views
How to restrict access to website texts for human users while permitting crawlers?
A lot of (news) websites provide at least short text previews (e.g., news articles) to search engines (e.g., Google). When browsing to such websites, those text pieces are not visible but replaced ...
0
votes
1
answer
182
views
How do I sign an HTTP request for https://api.x.com's OAuth 1.0a flow?
When making my post request as seen below, I receive a status 401 error from the /oauth/request_token endpoint. I'm at the first step in a 3 step process for authenticating with https://api.x.com to ...
2
votes
0
answers
126
views
KTOR + Netty - Configuring HTTPS Max Header List Size
My front-end application uses OKTA and passes the access token to my backend. The backend then parses the token information to get user information and check whether the token is expired. ...
1
vote
1
answer
136
views
Interactions between Golang http.Client.Timeout and http.Transport.MaxConnsPerHost
The docs for http.Client.Timeout says: The timeout includes connection time, any redirects, and reading the response body
The docs for http.Transport.MaxConnsPerHost says: MaxConnsPerHost optionally ...
0
votes
0
answers
45
views
Spring returns 403 on POST and PUT and 401 on GET
I try to use swagger with my GET, POST an PUT endpoints. When I try to trigger GET enpoint without authentication it returns me 401, but POST and PUT 403. Why is that so different? I would like to all ...
0
votes
0
answers
28
views
How to Extract Price Levels with Tally XML Request?
I'm working with Tally XML requests and need to extract PriceLevels using an XML Schema request. However, I'm unsure how to correctly identify and retrieve the PriceLevels.
Below is the XML request I'...
0
votes
0
answers
57
views
Flutter IOWebSocketChannel connection not upgrading to websocket
Whenever I try to attempt to connect in the server using websocket, it throws and error that says: Websocket error: WebsocketChannelException: WebSocketException: Connection to 'http://host:port/v2/ws-...