You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is also a CURLINFO_LOCAL_IP but I've the impression that user expectation is more on primary ip.
Question: what's about port ? Does the query ip exctract the IP address and the port (192.168.0.01:8080), or do we have a separate port query that we can do latter?
GET https://foo.com
HTTP 200
[Asserts]
ip == "192.168.0.1"
port == 8080
With ip/portas separated queries, we can also have isIPv6 and isIPv4 predicates:
A proposal to add an
ip
queryIn
libcurl
the corresponding call isCURLINFO_PRIMARY_IP
.There is also a
CURLINFO_LOCAL_IP
but I've the impression that user expectation is more on primary ip.Question: what's about port ? Does the query
ip
exctract the IP address and the port (192.168.0.01:8080
), or do we have a separateport
query that we can do latter?With
ip
/port
as separated queries, we can also haveisIPv6
andisIPv4
predicates:Idea from @lepapareil 😎
The text was updated successfully, but these errors were encountered: