Questions tagged [requests]

36 questions
1
vote
0 answers

NGINX Buffer parameters causing issues with Python requests library

'm having problems uploading files through the Python requests library when I activate the parameters below in my NGINX proxy (where the connection goes) proxy_buffering off; proxy_request_buffering off; Through curl I can successfully upload: It…
1
vote
0 answers

Multiple CA certs - How to convert them in single file (may be .pem ) and use them?

I am using python http.client for making requests to server. I am using multiple ssl_ca certs and I specify them using the load_verify_locations multiple times. However, in python requets only a single file can be given as certs for ssl. How do I…
Simplecode
  • 111
  • 3
1
vote
2 answers

Apache "ghost" requests?

I lack the ability to formulate my problem, otherwise I'd probably find the solution. I notice there are quite a number of pointless requests in my access log :~/$ cat /var/log/apache2/access.log | grep -P "GET / HTTP/1.1. 403 \d+ .-. .-." | wc…
php_nub_qq
  • 379
  • 3
  • 9
0
votes
1 answer

How to defend against attackers looking for faulty code?

I have a production IIS running on WS2012R2 on AWS. I was looking at the C:\Windows\System32\LogFiles\HTTPERR when I noticed some unusual requests in the logs. You can look at some of what they tried to request here. They even checked to see if I…
RisingSun
  • 103
  • 3
0
votes
1 answer

How do I obtain requests per second and latency per request for a UDP Request

I have an HTTP Api Server that is querying a UDP Server. I used wrk to test the requests per second for the HTTP Api Server and now I want to test the UDP Server requests per second and latency per request. Id like to be able to set the number of…
0
votes
1 answer

Server load handling : One single batch request vs multiple requests

I was talking to a developer about different apis for create, update and delete and he was saying that it was better to have a single batch request to server to do operations like create, update and delete than to have multiple requests for each…
0
votes
1 answer

A bot with blocked ip still causes exceptions on server

I manage a website which is being "attacked" by a very stupid bot. The bot tries the same requests all the time, it always gets a bad request response because ASP.NET detects "A potentially dangerous Request.Path value was detected from the…
BornToCode
  • 252
  • 1
  • 2
  • 7
0
votes
0 answers

Server specs for big ChatBot launch?

We're releasing a Messenger Platform ChatBot on a page with approx. 130k fans soon. At the moment we host on an EC2 instance with 2 Cores and 4GB RAM, which runs smoothly with our 30 users atm. Our tech stack is: NGINX gunicorn (4…
trnc
  • 688
  • 1
  • 12
  • 31
0
votes
1 answer

Windows Firewall log shows insane amount of ICMP SEND/RECEIVE requests. Normal?

I was checking my Windows Firewall logs after receiving a website notice that my connection was banned for sending too many requests, and noticed the following entries: 2017-05-18 03:39:23 ALLOW ICMP 127.0.0.1 127.0.0.1 - - 0 - - - - 8 0 -…
script'n'code
  • 161
  • 1
  • 1
  • 7
0
votes
1 answer

Block POST PUT and DELETE but allow GET from specific referrer

I'm using nginx and I want to block post, put and delete requests when they come from an unknown referrer. Meaning, I have the referrer: ".example.com" and from this referrer I want to allow all GET, PUT and POST (yeah, I know thats easy to fake the…
João Pereira
  • 39
  • 3
  • 7
0
votes
2 answers

Python Requests image upload HTTP POST

I am having some problem with a POST request that is driving me crazy. I am trying to upload an image using a POST using python requests by replicating the original request First of all, this is the original request I can see with Firebug that the…
Giorgio
  • 19
  • 1
  • 2
  • 4
0
votes
0 answers

Dealing with a large volume of json requests from site - apache maxing out requestWorkers

I am managing a service that is serving JSON files to my users. They all are loading the same cached json file, however there are a lot of users! On an average day I get over 2 million loads on the JSON file. With this amount of usage I am only…
ComputerLocus
  • 193
  • 4
  • 12
0
votes
3 answers

apache2 http monitoring on Debian Lenny

Is it possible to know if a php file on my server is being accessed by a user? Is there a command I can use through ssh that will list every IP addresses and which page they're requesting? My ultimate goal is to run a cron job to exec a specific php…
Bastien
  • 123
  • 2
  • 12
0
votes
2 answers

How to process requests twice in Apache

In order to perform realistic tests for a new backend server, I'd like to process all Apache requests twice. So simply handle all the live requests with the old server, as it's done right now, but then also 'duplicate' the requests to a different…
Pieter
  • 1,409
  • 3
  • 12
  • 9
0
votes
1 answer

Source of Unexplained Requests in Server Logs

I am baffled by some entries in my server logs, specifically the web-server logs. Other than normal, expected traffic, I have noticed three types of request errors (eg 404, etc.): Broken links, ie links from old, external pages that point to pages…
Synetech
  • 948
  • 1
  • 12
  • 27