Skip to content

test1188: Test for 'empty reply' error message - #6637

Closed
jay wants to merge 1 commit into
curl:masterfrom
jay:change_test1188
Closed

test1188: Test for 'empty reply' error message#6637
jay wants to merge 1 commit into
curl:masterfrom
jay:change_test1188

Conversation

@jay

@jay jay commented Feb 19, 2021

Copy link
Copy Markdown
Member
  • Test for an empty reply error message instead of non-existent host.

Some ISPs hijack DNS and resolve non-existent hosts.

Ref: https://en.wikipedia.org/wiki/DNS_hijacking#Manipulation_by_ISPs
Ref: #6621
Ref: #6623

Closes #xxxx

@jay jay added the tests label Feb 19, 2021

@bagder bagder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack yes...

@bagder

bagder commented Feb 19, 2021

Copy link
Copy Markdown
Member

Another option could be to use -f and have the server respond with a 4xx.

- Change the test to check for curl error on HTTP 404 Not Found.

test1188 tests "--write-out with %{onerror} and %{urlnum} to stderr".
Prior to this change it did that by specifying a non-existent host which
would cause an error. ISPs may hijack DNS and resolve non-existent hosts
so the test would not work if that was the case.

Ref: https://en.wikipedia.org/wiki/DNS_hijacking#Manipulation_by_ISPs
Ref: curl#6621
Ref: curl#6623

Closes #xxxx
@jay jay closed this in 3d954e4 Feb 20, 2021
@jay
jay deleted the change_test1188 branch February 20, 2021 19:45
@bagder bagder mentioned this pull request Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants