Skip to content

--urls-from-file reuses host with path from different url #825

@Wholteza

Description

@Wholteza

Hi! First of all thank you for this great tool. It has been very helpful when trying to figure out load based issues with my application.

I tried using the --urls-from-file option with a file containing all urls from my applications generated sitemap and I noticed some strange behavior.

I have multiple domains for my application. One for each country that is accessing it:

  • example.se
  • example.pl
  • example.de

These urls have translated slugs as well, making the urls easy to read for my customers:

  • example.com/men/shirts/cool-shirt
  • example.se/man/trojor/cool-troja

I created one big txt file containing the urls from the sitemaps from all domains. That means that the urls in the last example will be in the same file and run in the same oha test-run.

When running with 2 different domains i get 50% status 200 and 50% status 404.

After doing some digging and trying out the --debug flag (very nice). I found that a failing request was made to example.com/man/trojor/cool-troja i.e. The .com domain but with the .se path.

It seems like oha is reusing the host part of the request between requesting different urls.

Is this intended? And is there a possibility that you can change it so that every request uses the full url from the file? 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions