I ran into an issue where curl request run within few ms from command line but same url fetch was taking over 10 secs. After doing some debugging and research it turned out that call to check (getaddr ipv6 was timing out. Obviously you can do multiple things to fix this (including enabling ipv6 support) but since I did not have a need for ipv6 (it is disabled in my network configuration), I decided to recompile curl and disable ipv6. Here is the command for recompiling curl and installing into /usr/local/curl directory with ipv6 disabled.
./configure –prefix=/usr/local/curl –disable-ipv6
————————————-
DISCLAIMER: Please be smart and use code found on internet carefully. Make backups often. And yeah.. last but not least.. I am not responsible for any damage caused by this posting. Use at your own risk.
The curl request and command line are getting same fetch and debugging research is possible. The each and every lines are checked by the authorized person and support for enabling ipv6 support. The installing things and multiple fixing is possible for this direction. Recompiling with smart and code to be used for installing. Great coding and wonderful reading tutorials are possible to learn with online. Lot of users to learn by the way of programs. Linux system and system administration tools are given in online. Track the Apache MySQL PHP and other types of linux tutorials are possible to get from that