Questions tagged [http-head]

54 questions
1
vote
1 answer

tornado requesthandler overwrite head method

I'm using tornado framework of python to build up my site, and I encountered a problem. Now there is a requirement my site should response to head method, but in tornado, it would only return a 405 response, while I need to return the header of the…
Roger Liu
  • 1,768
  • 3
  • 16
  • 25
1
vote
1 answer

jQuery ajax HEAD request

I'm writing a script for work and I need to know if this will work: I am on one site that I need to be at in order to get the correct data, and can do this fine with a number of ajax requests. What I also need to do in the same action is request…
Steve
  • 93
  • 2
  • 9
0
votes
1 answer

HEAD requests vs getting only the `` of a web page

I'm writing some link scraping code where I was hoping to grab only the section of a given web page. Apparently I've been confused about what a HEAD request is, as I thought it was supposed to do exactly that. Instead, it just returns HTTP…
Yarin
  • 173,523
  • 149
  • 402
  • 512
0
votes
0 answers

The HTTP HEAD request is returning a 404 Not Found error

I am using WSO2 API Manager to publish my WebApi Gateway, which is connected to my REST services. However, when I try to create an Import Open API, the endpoint fails to verify due to an HTTP HEAD request that returns a 404 Not Found error. My…
Nahid
  • 25
  • 8
0
votes
1 answer

Curl HEAD request returns a last-modified header but Node https.request(..., {method: HEAD},...) does not

Apparently there's something I don't know about HEAD requests. Here's the URL: 'https://theweekinchess.com/assets/files/pgn/eurbli22.pgn', which I'll refer to as below. If I curl this, I see a last-modified entry in the headers: curl --head…
Jeff Lowery
  • 2,492
  • 2
  • 32
  • 40
0
votes
1 answer

Is it possible to make a HEAD request in puppeteer?

I have not been able to find documentation that addresses this. I want to grab header data for some links to text files to determine which are recent, but I don't want to download each file to find out this information.
Jeff Lowery
  • 2,492
  • 2
  • 32
  • 40
0
votes
0 answers

Unreliable HTTP status code when using the HEAD method

I have a PowerShell script to verify the existence of many (half a million) files in a web server. Some of these files are large (gigabytes) and I don't wan't to transfer them, so I've been using the HTTP HEAD method. The problem is, today I found…
Sarmat
  • 1
0
votes
0 answers

C# soap invokation are generating HEAD request and external server are blocking. How to remove these?

I have a problem when I Invoke a soap action in a external server, when i monitoring my application, wcf client generates me a lot of errors. Is any way to don't this request (http HEAD)? I'm using Basic authentication.
cm44
  • 111
  • 5
0
votes
2 answers

Prevent duplicate HTTP requests for cachable responses

Is it possible (without an application layer cache of requests) to prevent sending an HTTP request for the same resource multiple times when it's cachable? And if yes, how? E.g. instead of at time 0: GET /data (request#1) at time 1: GET /data…
Nick Russler
  • 4,608
  • 6
  • 51
  • 88
0
votes
1 answer

Should HEAD's response status code be the same as GET's status code?

As I know, HEAD is the same as GET, but without response body. If I request resource that doesn't exist, GET will response with 404 Not Found. What status code should return HEAD request in this case? 200 OK or 404 Not Found?
Petr Flaks
  • 543
  • 2
  • 7
  • 25
0
votes
0 answers

The difference between OWIN and IIS on handling HTTP HEAD request when the api is not support the HEAD request

I have a 2 services(WebApi), one is azure cloud service that using IIS host and another one is azure service fabric stateless service that using Owin host. There is a handler that like below, and both services register this handler to handle the…
zhenm
  • 41
  • 4
0
votes
1 answer

Http GET and DELETE multiple entity requests at once (PHP)

As the title says - is it valid? What do i mean If i call an endpoint with GET is it then valid to do http://some.thing/more?id[]=12&id[]=4&id[]=65 to let the server return multiple entities at once? I could not see any note about in the rfc docs.…
cottton
  • 1,522
  • 14
  • 29
0
votes
1 answer

Net::HTTP failing on a head request

I'm trying to make an HTTP Head request using Net::HTTP. require 'net/http' uri = URI("https://github.com/rails/rails") http = Net::HTTP.new(uri.host, uri.port) request = http.head(uri) puts request fails. AFAICT, this is because Net::HTTP is…
Buck Shlegeris
  • 517
  • 6
  • 22
0
votes
2 answers

How to get the "Title" from a webpage using HttpClient

I'm trying to get the "Title" from a webpage using Apache HttpClient 4. Edit: My first approach was trying to get it from the header (using HttpHead). If that is not possible, how can I get it from the body of the response, as @Todd says? Edit 2:…
Mario S
  • 1,914
  • 1
  • 19
  • 32
0
votes
1 answer

URI encoding with Apache HttpHead before retreiving redirection urls

I have to get redirection URLs for some short url to check if I can download final page. HttpHead is used to get final destination url (see code below). HttpClient client = HttpClientBuilder.create().build(); HttpHead httpHead = new…