10-04-2011
Unable to connect to a website using Curl
Hello,
I am using Curl command to make a function call to a web service. The issue I am facing right now is:
curl h**p://www.google.com
with the above command, I get a XML file as a response. Also when i execute :
wget h**p://www.google.com
Replace ** : tt
I can see status as connected. Which concludes the fact that I am able to connect to web.
But there is another web service that we are using. If I try to connect to it using same commands, I am not able connect to it.
The command keeps resolving host name and exits with an error ' Couldn't resolve host'. I am able to connect to the website using the browser ( IE / Chrome ).
Is there any firewall setting on Unix which needs to be disabled in order to achieve this ?
Any option in this regard will be extremely helpful. Let me know if you need any more details.
Thanks in advance
- Amit
10 More Discussions You Might Find Interesting
1. HP-UX
Hello HP-UX Gurus,
I am having issues trying to start an x-session via eXceed 7.1.
When I bring up eXceed via XDMCP Braodcast I see the host name and IP Address but when I try to connect the X window does not come up.
I made the modification to the following file “/etc/dt/config/Xaccess”... (2 Replies)
Discussion started by: smokie
2 Replies
2. UNIX for Dummies Questions & Answers
this isn't really a UNIX issue.. but you guys are smart (spelled "s-m-r-t") so I was hoping someone can help me out. I have posted on other forums and no one is able to help me out.
For the past 3 months I was playing a browser based game at http://www.ogame.org. It is located in Europe, I... (1 Reply)
Discussion started by: Bobafart
1 Replies
3. Solaris
Hi friends
recently i have installed SXDE 1/08 into my machine,and i installed wifi driver also
its working fine,Recently i was unable to connect to Internet,I have not changed any configurations and any installations,thing is that i got my iwk0 interface is UP and IP address also and i can... (6 Replies)
Discussion started by: srinivas2828
6 Replies
4. Emergency UNIX and Linux Support
I shall explain the situation that I am facing to the best extent possible. I require some help, as this situation is an urgent one.
I am trying to automate sending data from one AIX machine to another. A script runs that tries to push data received from an upstream application to another AIX... (7 Replies)
Discussion started by: ggayathri
7 Replies
5. Shell Programming and Scripting
Hi
i am trying to open HTTP by curl command.
i am tryng to do that from command or script BASH.
also iptables is off
it doesnt work i am getting an error:
curl: (7) coudn't connect to host
the scipt is:
#! /bin/bash
curl http://www.cnn.com (1 Reply)
Discussion started by: zigizag
1 Replies
6. Red Hat
I have managed to install Broadcom BCM43228 Wireless adapter on a laptop running CentOS 5.9 using instructions at:
wiki.centos.org/HowTos/Laptops/Wireless/Broadcom
I had the problem "Error for wireless request "Set Encode" (8B2A): SET failed on device... mentioned on the same page and solved... (0 Replies)
Discussion started by: cooltoad
0 Replies
7. Solaris
hi
I am having issues when trying to connect using ftp, I am having the following error:
User (10.100.48.73:(none)): moz
331 Password required for moza.
Password:
530 Login incorrect.
Login failed.
ftp> by
221 Goodbye.
I have created a user like this:
useradd -g 10 -d /lam/moza -m -s... (11 Replies)
Discussion started by: fretagi
11 Replies
8. AIX
After following the instructions given by resident moderator Bakunin over here
https://www.unix.com/aix/279862-installed-memory-32gb-but-shows-only-16gb.html
#1 Connect to ASMI
#2 Configure the deconfigured memory
#3 Start the machine
OK, everything is fine, however now cannot connect to... (5 Replies)
Discussion started by: filosophizer
5 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Getting the below error while installing from ks.cfg unable to open input kickstart file curl#37 Couldn't open file /tmp/swappart
Here am trying to include /tmp/swappart file from pre section under disks and partition section. Dont know where exactly am doing wrong
My kickstart file... (3 Replies)
Discussion started by: Sumanthsv
3 Replies
10. UNIX for Beginners Questions & Answers
Hi,
As an exercise, I am attempting to scrape the following website to obtain ticket price for a certain journey, so I can capture the cheapest ticket by running the script hourly.
... (4 Replies)
Discussion started by: sand1234
4 Replies
LEARN ABOUT OSX
curl-config
curl-config(1) curl-config manual curl-config(1)
NAME
curl-config - Get information about a libcurl installation
SYNOPSIS
curl-config [options]
DESCRIPTION
curl-config displays information about the curl and libcurl installation.
OPTIONS
--ca Displays the built-in path to the CA cert bundle this libcurl uses.
--cc Displays the compiler used to build libcurl.
--cflags
Set of compiler options (CFLAGS) to use when compiling files that use libcurl. Currently that is only the include path to the curl
include files.
--checkfor [version]
Specify the oldest possible libcurl version string you want, and this script will return 0 if the current installation is new enough
or it returns 1 and outputs a text saying that the current version is not new enough. (Added in 7.15.4)
--configure
Displays the arguments given to configure when building curl.
--feature
Lists what particular main features the installed libcurl was built with. At the time of writing, this list may include SSL, KRB4 or
IPv6. Do not assume any particular order. The keywords will be separated by newlines. There may be none, one, or several keywords in
the list.
--help Displays the available options.
--libs Shows the complete set of libs and other linker options you will need in order to link your application with libcurl.
--prefix
This is the prefix used when libcurl was installed. Libcurl is then installed in $prefix/lib and its header files are installed in
$prefix/include and so on. The prefix is set with "configure --prefix".
--protocols
Lists what particular protocols the installed libcurl was built to support. At the time of writing, this list may include HTTP,
HTTPS, FTP, FTPS, FILE, TELNET, LDAP, DICT. Do not assume any particular order. The protocols will be listed using uppercase and are
separated by newlines. There may be none, one, or several protocols in the list. (Added in 7.13.0)
--static-libs
Shows the complete set of libs and other linker options you will need in order to link your application with libcurl statically.
(Added in 7.17.1)
--version
Outputs version information about the installed libcurl.
--vernum
Outputs version information about the installed libcurl, in numerical mode. This outputs the version number, in hexadecimal, with 8
bits for each part; major, minor, patch. So that libcurl 7.7.4 would appear as 070704 and libcurl 12.13.14 would appear as 0c0d0e...
Note that the initial zero might be omitted. (This option was broken in the 7.15.0 release.)
EXAMPLES
What linker options do I need when I link with libcurl?
$ curl-config --libs
What compiler options do I need when I compile using libcurl functions?
$ curl-config --cflags
How do I know if libcurl was built with SSL support?
$ curl-config --feature | grep SSL
What's the installed libcurl version?
$ curl-config --version
How do I build a single file with a one-line command?
$ `curl-config --cc --cflags` -o example example.c `curl-config --libs`
SEE ALSO
curl(1)
Curl 7.17.1 25 Oct 2007 curl-config(1)