473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

cURL help please

I am having a problem using cURL to create an https connection on a
non-standard port (440). Using curl_setopt to set the port to 440 has
no effect, and I get the following from curl's verbose output.

* About to connect() to xxx.xxx.xxx.xxx port 443
* Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 443

If I put ':440' in the url, I get the following and an error code of
7.
* About to connect() to xxx.xxx.xxx.xxx port 440
* Failed to connect to xxx.xxx.xxx.xxx IP number 1: 13
* Closing connection #0
>From phpinfo:
php 5.5.2

FreeBSD cgi27 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #1

cgi mode
'./configure' '--prefix=/usr/local/nf/php5' '--exec-prefix=/usr/local/
nf/php5' '--enable-exif' '--enable-dbase' '--enable-mbstring' '--with-
mysql=/usr/local/nf' '--enable-discard-path' '--with-config-file-path=/
usr/local/nf/php5/etc' '--with-zlib-dir=/usr/local/nf' '--with-iconv=/
usr/local/nf' '--with-libxml-dir=/usr/local/nf' '--with-png-dir=/usr/
local/nf' '--with-jpeg-dir=/usr/local/nf' '--with-imagick=/usr/local/
nf' '--with-gd' '--with-curl=/usr/local/nf' '--with-openssl=/usr/local/
nf' '--without-xpm' '--without-freetype' '--with-libxml-dir=/usr/local/
nf' '--with-mcrypt=/usr/local/nf' '--with-mysqli=/usr/local/nf/bin/
mysql_config'

Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_perl/1.26
libcurl/7.11.1 OpenSSL/0.9.8e zlib/1.1.3

I have access to another server, and have tested the code there and it
works; apache 2.1, php 5.2.3, libcurl/7.16.0 OpenSSL/0.9.8d zlib/
1.2.3. Changes to the production server are not possible as it is a
hosted site :(

TIA for any help you can provide.

Oct 12 '07 #1
3 2609
k.*******@gmail.com wrote:
I am having a problem using cURL to create an https connection on a
non-standard port (440). Using curl_setopt to set the port to 440 has
no effect, and I get the following from curl's verbose output.

* About to connect() to xxx.xxx.xxx.xxx port 443
* Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 443

If I put ':440' in the url, I get the following and an error code of
7.
* About to connect() to xxx.xxx.xxx.xxx port 440
* Failed to connect to xxx.xxx.xxx.xxx IP number 1: 13
* Closing connection #0
>>From phpinfo:

php 5.5.2

FreeBSD cgi27 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #1

cgi mode
'./configure' '--prefix=/usr/local/nf/php5' '--exec-prefix=/usr/local/
nf/php5' '--enable-exif' '--enable-dbase' '--enable-mbstring' '--with-
mysql=/usr/local/nf' '--enable-discard-path' '--with-config-file-path=/
usr/local/nf/php5/etc' '--with-zlib-dir=/usr/local/nf' '--with-iconv=/
usr/local/nf' '--with-libxml-dir=/usr/local/nf' '--with-png-dir=/usr/
local/nf' '--with-jpeg-dir=/usr/local/nf' '--with-imagick=/usr/local/
nf' '--with-gd' '--with-curl=/usr/local/nf' '--with-openssl=/usr/local/
nf' '--without-xpm' '--without-freetype' '--with-libxml-dir=/usr/local/
nf' '--with-mcrypt=/usr/local/nf' '--with-mysqli=/usr/local/nf/bin/
mysql_config'

Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_perl/1.26
libcurl/7.11.1 OpenSSL/0.9.8e zlib/1.1.3

I have access to another server, and have tested the code there and it
works; apache 2.1, php 5.2.3, libcurl/7.16.0 OpenSSL/0.9.8d zlib/
1.2.3. Changes to the production server are not possible as it is a
hosted site :(

TIA for any help you can provide.

Perhaps a firewall is blocking it?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 12 '07 #2
On Oct 12, 12:02 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
k.roll...@gmail.com wrote:
I am having a problem using cURL to create an https connection on a
non-standard port (440). Using curl_setopt to set the port to 440 has
no effect, and I get the following from curl's verbose output.
* About to connect() to xxx.xxx.xxx.xxx port 443
* Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 443
If I put ':440' in the url, I get the following and an error code of
7.
* About to connect() to xxx.xxx.xxx.xxx port 440
* Failed to connect to xxx.xxx.xxx.xxx IP number 1: 13
* Closing connection #0
>From phpinfo:
php 5.5.2
FreeBSD cgi27 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #1
cgi mode
'./configure' '--prefix=/usr/local/nf/php5' '--exec-prefix=/usr/local/
nf/php5' '--enable-exif' '--enable-dbase' '--enable-mbstring' '--with-
mysql=/usr/local/nf' '--enable-discard-path' '--with-config-file-path=/
usr/local/nf/php5/etc' '--with-zlib-dir=/usr/local/nf' '--with-iconv=/
usr/local/nf' '--with-libxml-dir=/usr/local/nf' '--with-png-dir=/usr/
local/nf' '--with-jpeg-dir=/usr/local/nf' '--with-imagick=/usr/local/
nf' '--with-gd' '--with-curl=/usr/local/nf' '--with-openssl=/usr/local/
nf' '--without-xpm' '--without-freetype' '--with-libxml-dir=/usr/local/
nf' '--with-mcrypt=/usr/local/nf' '--with-mysqli=/usr/local/nf/bin/
mysql_config'
Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_perl/1.26
libcurl/7.11.1 OpenSSL/0.9.8e zlib/1.1.3
I have access to another server, and have tested the code there and it
works; apache 2.1, php 5.2.3, libcurl/7.16.0 OpenSSL/0.9.8d zlib/
1.2.3. Changes to the production server are not possible as it is a
hosted site :(
TIA for any help you can provide.

Perhaps a firewall is blocking it?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================- Hide quoted text -

- Show quoted text -
There is a firewall, but the port is open and I confirmed it with a
browser. I have also checked the firewall's logs, and there is
nothing from the production server.

Thanks anyway.

Oct 12 '07 #3
k.*******@gmail.com wrote:
On Oct 12, 12:02 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>k.roll...@gmail.com wrote:
>>I am having a problem using cURL to create an https connection on a
non-standard port (440). Using curl_setopt to set the port to 440 has
no effect, and I get the following from curl's verbose output.
* About to connect() to xxx.xxx.xxx.xxx port 443
* Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 443
If I put ':440' in the url, I get the following and an error code of
7.
* About to connect() to xxx.xxx.xxx.xxx port 440
* Failed to connect to xxx.xxx.xxx.xxx IP number 1: 13
* Closing connection #0
From phpinfo:
php 5.5.2
FreeBSD cgi27 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #1
cgi mode
'./configure' '--prefix=/usr/local/nf/php5' '--exec-prefix=/usr/local/
nf/php5' '--enable-exif' '--enable-dbase' '--enable-mbstring' '--with-
mysql=/usr/local/nf' '--enable-discard-path' '--with-config-file-path=/
usr/local/nf/php5/etc' '--with-zlib-dir=/usr/local/nf' '--with-iconv=/
usr/local/nf' '--with-libxml-dir=/usr/local/nf' '--with-png-dir=/usr/
local/nf' '--with-jpeg-dir=/usr/local/nf' '--with-imagick=/usr/local/
nf' '--with-gd' '--with-curl=/usr/local/nf' '--with-openssl=/usr/local/
nf' '--without-xpm' '--without-freetype' '--with-libxml-dir=/usr/local/
nf' '--with-mcrypt=/usr/local/nf' '--with-mysqli=/usr/local/nf/bin/
mysql_config'
Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_perl/1.26
libcurl/7.11.1 OpenSSL/0.9.8e zlib/1.1.3
I have access to another server, and have tested the code there and it
works; apache 2.1, php 5.2.3, libcurl/7.16.0 OpenSSL/0.9.8d zlib/
1.2.3. Changes to the production server are not possible as it is a
hosted site :(
TIA for any help you can provide.
Perhaps a firewall is blocking it?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================- Hide quoted text -

- Show quoted text -

There is a firewall, but the port is open and I confirmed it with a
browser. I have also checked the firewall's logs, and there is
nothing from the production server.

Thanks anyway.

The inbound port may be open - but does the application have permission
to connect to the outbound port?

Two entirely different things.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Haluk Durmus | last post by:
Hello I checked out openssl,mm,apr,apr-util,apache 2,curl,libxml and php from cvs. php couse an ERROR I did the following steps:
0
by: Ville Mattila | last post by:
Hello readers, I'm trying to install the latest PHP4 version from the scratch. The configure string is following: ../configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-curl...
3
by: Hans | last post by:
Hi everybody, I am desperately trying to log into my account at godaddy.com with PHP and Curl and just cannot make it happen. Has anybody written a script for this purpose? Here is what I...
1
by: ynotssor | last post by:
Hello, can someone please tell me the correct way to use "curl" to complete an online form? I am trying to eventually retrieve my account balance via a cron job that will email me the parsed output...
4
by: yawnmoth | last post by:
Is it possible to send http requests with curl but not have curl wait for the response? The reason I ask is because I'd like to code a web app that can sorta start time consuming processes...
0
by: nfhm2k | last post by:
I've been trying to find a solution to this for quite some time now... I even took a look at existing scripts... Including this one......
1
by: devranger | last post by:
Hello, I am in the process of learning PHP CURL and in doing some test examples I am having some issues with CURL that I do not fully understand. I am doing a test to use CURL to post and return...
9
by: devranger | last post by:
I am using the below CURL Function and can not figure out why it is not retruning the results from the post. Can anyone take a look and tell me what I may be doing wrong? I am just not seeing...
3
by: adamalton | last post by:
Hi, I am using cURL with php to submit a form to a website and then retrieve the page that comes back. That part is easy. The problem is that the site I am posting the request to displays a...
6
by: K. | last post by:
Hello all! Can you write me some code which let me sleep calm during the night and what should I do to prevent some attackers from using curl function? In Poland there is a big portal which...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.