You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2020/07/29 07:52:58 UTC
[GitHub] [trafficserver] Har-Kuun opened a new issue #7055: [8.0.8] 400 Bad Request when pushing object into cache
Har-Kuun opened a new issue #7055:
URL: https://github.com/apache/trafficserver/issues/7055
As title suggests, I'm following the [guide here](https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/storage/index.en.html#pushing-an-object-into-the-cache) to push content into cache.
The PUSH method option has been enabled in `records.config`, and local IP is whitelisted in `ip_allow.config`. ATS server is in reverse proxy mode, with https://example.com mapping the origin server IP.
The first step, `curl -s -i -o /path/to/file "https://example.com/push_me.html"` runs smoothly.
The second step in the guide, `curl -x -s -o /dev/null -X PUSH --data-binary /path/to/file "https://example.com/push_me.html"`, are causing probelms. Directly running this command throws a `curl: (5) Could not resolve proxy:` error due to the `-x` option here. Removing the -x option will lead to 400 Bad Request response from the origin server. I'm wondering what is the correct way to do this.
Thank you!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] SolidWallOfCode commented on issue #7055: [8.0.8] 400 Bad Request when pushing object into cache
Posted by GitBox <gi...@apache.org>.
SolidWallOfCode commented on issue #7055:
URL: https://github.com/apache/trafficserver/issues/7055#issuecomment-969550453
I suspect the problem is that `curl` does proxying for HTTP and HTTPS different. In the first case `curl` does a TLS connect and sends the `PUSH`. If the `-x` or `--proxy` option is used with an HTTPS proxy then `curl` will send a `CONNECT` to the proxy and then send a `PUSH` to the upstream. Presuming "example.com" isn't ATS, then neither `curl` actually connects to ATS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] bneradt closed issue #7055: [8.0.8] 400 Bad Request when pushing object into cache
Posted by GitBox <gi...@apache.org>.
bneradt closed issue #7055:
URL: https://github.com/apache/trafficserver/issues/7055
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] github-actions[bot] commented on issue #7055: [8.0.8] 400 Bad Request when pushing object into cache
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #7055:
URL: https://github.com/apache/trafficserver/issues/7055#issuecomment-888735869
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] bneradt commented on issue #7055: [8.0.8] 400 Bad Request when pushing object into cache
Posted by GitBox <gi...@apache.org>.
bneradt commented on issue #7055:
URL: https://github.com/apache/trafficserver/issues/7055#issuecomment-969550645
The -x option should take a proxy URL. It sounds like the document had a bug in it. It looks like this document has since been updated to address the problem that was seen here. Please re-open if the current document is still confusing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org