68,147 questions
3
votes
2
answers
75
views
Using sizeof(pointer) with strncpy
I have this parser, I want to use the size of the pointer (that is 8 bytes) in the function strncpy, I was able do it with the "method" part, why does it crash the "path" part ?
It ...
-1
votes
0
answers
34
views
MongoDB MCP server throwing error while running the server on an EC2 instance on sHTTP mode
I referred this github repo published by MongoDB: https://github.com/mongodb-js/mongodb-mcp-server?tab=readme-ov-file#option-6-running-as-an-http-server
I tried to run the MongoDB MCP server on an EC2 ...
3
votes
1
answer
44
views
Is it possible to modify the body of an outgoing HTTP request in a Firefox add-on?
I am making a Firefox add-on and I need it to have the ability to modify the bodies of certain outgoing HTTP requests. The instructions for modifying headers are readily available on Mozilla's own ...
0
votes
0
answers
30
views
Ktor client 3.2.0+ causes first authenticated call to return 400 Bad Request
If I login normally and then call an endpoint, it works fine. (Yes login as first call works fine)
If I restart the app, fetch the stored token from SharedPreferences and make the same request — it ...
-3
votes
0
answers
79
views
Port http server is different but still get response [closed]
I'm currently building a simple reverse proxy where I can forward to the origin server.
When the client requests from the reverse proxy, I do not change the header of the request. The request still ...
0
votes
0
answers
64
views
Command "nuget push" to private BaGetter server uploads a 0-byte package instead of actual content
I'm experiencing a weird issue with both of these commands:
nuget.exe push -Source <url> -ApiKey <key> <package-file>
dotnet nuget push -s <url> -k <key> <package-file&...
0
votes
1
answer
27
views
Get incident report on Access-Contro-lAllow-Origin violation
I am trying some things out regarding the reporting API. I have set up a simple HTML page that registers a ReportingObserver like so:
const reportObserver = new ReportingObserver((reports) => alert(...
0
votes
1
answer
38
views
What HTTP status code for Patch that may create and/or delete entries from nested table [closed]
Let's have a data structured like this:
users: [{
"name": "username1",
"garages": [{
"name": "my one garage even though I may have several",
...
-4
votes
1
answer
82
views
Porting Xero API Google Apps script code to C# not working
I am new to this. I am trying to interact with Xero APIs (identity initially) in C# without using the sdk. I did this successfully in Google Apps Script using UrlFetchApp.fetch but now here is my C# ...
1
vote
0
answers
38
views
Enabeling per-request DEBUG level in Springf framework
My goal is to have per-request DEBUG level, I can set log level for rootLogger or any specific package (eg, com.example, org.springframework.web ...) to any level, through logback.xml or application....
5
votes
2
answers
266
views
Static files not recognized in base template [closed]
I can't figure out why the CSS sheet called in my base template's header isn't hooked up when I check my index.html file on http.server. I'm migrating my site to Python and Jinja, no frameworks.
My ...
0
votes
3
answers
52
views
Why is HTTP CONNECT safe to open an SSL tunnel through a proxy
As I understand, in order to open a SSL tunnel between client and a server through a proxy:
we open a TCP socket with the proxy.
we make an HTTP CONNECT method, which basically makes the proxy only ...
0
votes
1
answer
201
views
How to upload images via API on postimages.org
Can someone help me reverse engineer the api for postimages.org? They don't provide documentation for their api. I want to upload images through api but I can only find methods to upload anonymously ...
0
votes
1
answer
34
views
HTTPx Response.extensions["network_stream"] not reading as much as was specified
Minimum reproducible example:
from httpx import stream
with stream('GET', 'http://127.0.0.1:5689/x86/fish/1.0.1.gmf') as req: # file length 13875362 bytes
net_stream = req.extensions["...
-1
votes
1
answer
75
views
How can I resume downloading file from where it left off without using the HTTP Range header and avoid re-downloading already received bytes? [closed]
I’m working on a downloader in Python using requests. My goal is to resume downloading large files after an interruption (e.g., crash or network failure).
✅ My constraints:
I already have part of the ...