Questions tagged [http-head]

54 questions
0
votes
1 answer

Spring MVC, Google App Engine, and filtering for HEAD requests

I have a simple Spring MVC 3.2 based application hosted on Google App Engine. Controllers return ModelAndView objects for GET requests, and the pages use JSP. Instead of instrumenting each Controller with a handler for HEAD requests, I followed the…
mustbealennox
  • 125
  • 1
  • 15
0
votes
1 answer

Apache 2.2.2 response on HEAD requests

Seems that Apache insists on removing the "Content-Length" header when sending a response to a HEAD request. Is there a way to configure it (or code it in PHP) to send "Content-Length: 0" for such responses? For some weird reason it breaks the…
0
votes
1 answer

Elmah and blocking http HEAD requests

Would there be any consequence in blocking HEAD requests with Elmah? I get quit a few of errors that come through with Elmah. Should I have ASP.NET MVC accept HEAD requests? I'm not sure if I am missing something with HEAD.
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

How do I change header location of curl content scraper

I am scraping content from a url that is hosted in the UK using curl. When i view the site in my browser from the US it shows the product pricing in dollars but when i use curl to retrieve content it returns in Euros. I need it to return in US…
0
votes
1 answer

Does a HttpHead request trigger any scripts on the page?

The title pretty much says it all. I'm working on an android project currently that sends a HttpHead request and verifies which status code is sent back. There are certain sections of the website I am accessing that require session data and if you…
Gyroscope
  • 3,121
  • 4
  • 26
  • 33
0
votes
0 answers

How to set the Content-Length header and it work in Cassini?

I'm working on a slightly low-level ASP.Net project. One of the things I need to support is properly handling HEAD requests. For the uninitiated, a HEAD request is basically just HTTP headers with no content. Part of this includes a correct…
Earlz
  • 62,085
  • 98
  • 303
  • 499
-1
votes
2 answers

check if file exist in the same URL but not in local server

I want to check if a file exists in the same URL but not on the server. What I meant was, say if I have a domain https://example.com/ and a folder in the domain https://example.com**/s3files/** automatically points or redirect to S3 so that…
user2300947
  • 450
  • 4
  • 14
-1
votes
1 answer

How do I make a HTTP HEAD request using requests?

How do I make a HTTP HEAD request using the requests library?
Malekai
  • 4,765
  • 5
  • 25
  • 60
-3
votes
1 answer

What does 'requests.head()' do in python requests?

import requests send = requests.head('https://httpbin.org') print(send.text) What does 'requests.head()' do ? i get empty responses
user19944660
1 2 3
4