html can only be retrieved halfway with curl command

Asked 2 years ago, Updated 2 years ago, 129 views

When you run the following command on AWS, it stops halfway and the cursor does not return as shown below.
I'm having trouble identifying the cause and separating problems.
If anyone knows how to solve this problem, I would appreciate it if you could let me know.

commands executed:

$curl http://store.zexy.net/etc/wedgwood.php

Results:

curl_on_aws

Tried

·Similar events occur even if you try multiple times (with reproducibility).
·The same curl command was executed on a local PC (OSX) or another server (CentOS), and it was successful
·The problem also occurred with wget
·curl http:// (where the above domain is included) / has been successfully retrieved (data was retrieved without any problems)
·curl http:// (where the above domain is included) /etc/baccarat.php is also successful
·In Python, requests.get() could not retrieve the program without stopping.
·Wget and python both ended successfully locally

aws curl

2022-09-30 19:00

1 Answers

By adding -H'Expect:100-continue' to the option, we were able to get all the content (from the comments section)

 curl-H'Expect: 100-continue' http://store.zexy.net/etc/wedgwood.php


2022-09-30 19:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.