Re: [PHP] php + cURL issue

2005-11-26 Thread Nate Nielsen
I'm adding additional bounty to my problem for anyone who can help me fix 
it.


I'll send you a Rio Cali Sport 256 MB MP3 player - new in box.  Comes with 
the sport ear buds, arm strap, few other accessories.  You can google it for 
the details of it.  Great for a stocking stuffer or as an extra gadget for 
kicks (as if we all dont have enough).   =D


To restate the problem for those that have forgotten, one server is working 
(win 2k, other is not win 2k3) - same code, same versions of everything. 
I've created a page for you to view the code / the verbose data / the 
phpInfo() for the two servers.   Its a script to auto-login to a site - not 
particularly yahoo, the problem occurs with all cookie based logins, so 
using this yahoo script as an example.  Again, the win2k server ==IS== 
working with that code - so its dosent appear to be a code issue.


You can view the debug information here : http://70.84.198.254/index.html

thanks again,

Nate Nielsen
[EMAIL PROTECTED]



- Original Message - 
From: Curt Zirzow [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Friday, November 18, 2005 11:04 PM
Subject: Re: [PHP] php + cURL issue



On Fri, Nov 18, 2005 at 06:08:16PM -0600, Nate Nielsen wrote:

Okay, I've added the verbose output to copare exactly what is happening
between the two versions - thanks to Curt, the verbose info shows there 
IS

something different happening.

To recap, the code is exactly the same, the php version is the same (same
files even), the php.ini is the same (except drive letters), the curl
version is exactly the same (libcurl/7.14.0 OpenSSL/0.9.8 zlib/1.2.3). 
The
only difference is that one server is Win2k and the other is Win2003 
(and

of course one is working and other is not).


yeah, it does seem to be *not* a bug in curl versions.



Now it is very clear that something different is happening on the two
different servers.  I've created a page to list the phpInfo() data, the
code that is being run, and the VERBOSE information outputted by cURL.

You can view the information here : http://70.84.198.254/index.html


ok.. the key thing i noticed in that nice little side by side
display you put together is this:

When you are sending the first post data look at the end of it
curl is complaining about something:

Ok side:
name=login_form.src=auc.tries=1.done=TML
4.01//EN.md5=.hash=.js=.partner=.slogin=adsherrouse.intl=us.fUpdate=.prelog=.bid=.aucid=.challenge=.01//EN.yplus=.chldID=pkg=hasMsgr=0passwd=doglogansubmit=Sign
 In HTTP/1.1 302 Found

Bad Side:
name=login_form.src=auc.tries=1.done=TML
4.01//EN.md5=.hash=.js=.partner=.slogin=adsherrouse.intl=us.fUpdate=.prelog=.bid=.aucid=.challenge=.01//EN.yplus=.chldID=pkg=hasMsgr=0passwd=doglogansubmit=Sign
 In* Curl_xxx_rcvs returned -1, block = TRUE

You will notice that the ok side is sends back a 302 while the bad
side is returning an error from curl.

I'm not sure what that Curl_xxx_rcvs.. line means but it seems is
the source of the problem.

A other thing you would want to compare is the actual results that
come back from the request.

On the otherhand, what you seem to be doing is very likely to break
sooner than later, i'm not sure why you want to proxy a complex web
authentication system such as yahoo's


Curt.
--

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php + cURL issue

2005-11-18 Thread Nate Nielsen
Okay, I've added the verbose output to copare exactly what is happening 
between the two versions - thanks to Curt, the verbose info shows there IS 
something different happening.


To recap, the code is exactly the same, the php version is the same (same 
files even), the php.ini is the same (except drive letters), the curl 
version is exactly the same (libcurl/7.14.0 OpenSSL/0.9.8 zlib/1.2.3).  The 
only difference is that one server is Win2k and the other is Win2003  (and 
of course one is working and other is not).


Now it is very clear that something different is happening on the two 
different servers.  I've created a page to list the phpInfo() data, the code 
that is being run, and the VERBOSE information outputted by cURL.


You can view the information here : http://70.84.198.254/index.html

You can see from looking at the verbose information that something is 
definitely happening differently on the dev/working server.


Again, I'm putting a bounty on this issue.  If you can help me fix this, 6 
months of free hosting on one of my dedicated (you choose US or Germany) 
based server (with your own IP).  If you dont need/want hosting, I'll give 
you some cash.  Up to you.


Any help is greatly GREATLY appreciated!!

Thanks again,

Nate Nielsen
[EMAIL PROTECTED]


- Original Message - 
From: Curt Zirzow [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Thursday, November 17, 2005 9:28 PM
Subject: Re: [PHP] php + cURL issue



On Thu, Nov 17, 2005 at 04:00:21PM -0600, Nate Nielsen wrote:
I'm having an issue with cURL.  I have installed it on two different 
boxes, one is working properly, and another isn't.


The script auto login's a user to a site.  One server it works as 
expected and logs the user in, the other it does not.  It appears the 
cookie data that is being saved is different on the two machines from the 
login.




what are the differences in the cookies?

have you tried curl_setopt() with:
 curl_setopt($ch, CURLOPT_VERBOSE);
 curl_setopt($ch, CURLOPT_STDERR, $filehandle); // where to log

have you looked at the output on the login request to ensure that
the content is being returned as expected.

What does the code look like?


Curt.
--

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php + cURL issue

2005-11-18 Thread Curt Zirzow
On Fri, Nov 18, 2005 at 06:08:16PM -0600, Nate Nielsen wrote:
 Okay, I've added the verbose output to copare exactly what is happening 
 between the two versions - thanks to Curt, the verbose info shows there IS 
 something different happening.
 
 To recap, the code is exactly the same, the php version is the same (same 
 files even), the php.ini is the same (except drive letters), the curl 
 version is exactly the same (libcurl/7.14.0 OpenSSL/0.9.8 zlib/1.2.3).  The 
 only difference is that one server is Win2k and the other is Win2003  (and 
 of course one is working and other is not).

yeah, it does seem to be *not* a bug in curl versions.

 
 Now it is very clear that something different is happening on the two 
 different servers.  I've created a page to list the phpInfo() data, the 
 code that is being run, and the VERBOSE information outputted by cURL.
 
 You can view the information here : http://70.84.198.254/index.html

ok.. the key thing i noticed in that nice little side by side
display you put together is this:

When you are sending the first post data look at the end of it
curl is complaining about something:

Ok side:
name=login_form.src=auc.tries=1.done=TML
4.01//EN.md5=.hash=.js=.partner=.slogin=adsherrouse.intl=us.fUpdate=.prelog=.bid=.aucid=.challenge=.01//EN.yplus=.chldID=pkg=hasMsgr=0passwd=doglogansubmit=Sign
  In HTTP/1.1 302 Found

Bad Side:
name=login_form.src=auc.tries=1.done=TML
4.01//EN.md5=.hash=.js=.partner=.slogin=adsherrouse.intl=us.fUpdate=.prelog=.bid=.aucid=.challenge=.01//EN.yplus=.chldID=pkg=hasMsgr=0passwd=doglogansubmit=Sign
  In* Curl_xxx_rcvs returned -1, block = TRUE

You will notice that the ok side is sends back a 302 while the bad
side is returning an error from curl.

I'm not sure what that Curl_xxx_rcvs.. line means but it seems is
the source of the problem.

A other thing you would want to compare is the actual results that
come back from the request.

On the otherhand, what you seem to be doing is very likely to break
sooner than later, i'm not sure why you want to proxy a complex web
authentication system such as yahoo's


Curt.
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php + cURL issue

2005-11-17 Thread Nate Nielsen
I'm having an issue with cURL.  I have installed it on two different boxes, one 
is working properly, and another isn't.

The script auto login's a user to a site.  One server it works as expected and 
logs the user in, the other it does not.  It appears the cookie data that is 
being saved is different on the two machines from the login.

The code itself is identical.   The result on the two servers is different.   
I've fiddled with this thing for a couple weeks, and now its too late to mess 
with it anymore as I have a launch target I need to hit.

What I'd like is a php / IIS guru to help me fix this.  I will give you remote 
desktop access to the server and you can take it away from there.  I just need 
you to get the script running on the server the same as the other.  The script 
is already there, its very simplistic, only about 50 lines or so, no database 
interaction, nothing fancy at all.  I'm not a strong PHP guy, so its very 
simplistic.  (again though, it works on other server, so its not a code issue)

In return, I'll give you free hosting on one of my dedicated servers for 6 
months.  This is not your average shared hosting, I dont host sites for a 
living, I only host clients I code for - so there is only a handful of people 
on each server.  In fact, the server you will be on, you will be the only 
person on it at this time.  You'll have access to PHP (obviously), ColdFusion 
MX 7 (the latest, greatest version), MSSQL 2k and/or mySQL (different server), 
and if you need additional services, we can work that out.

Please email me if you are interested in helping or if you have any ideas 
please!!   

Thanks in advance!

- Nate Nielsen
[EMAIL PROTECTED]

Re: [PHP] php + cURL issue

2005-11-17 Thread Nate Nielsen
also, as another note - the php version and cURL version is identical on the 
two machines - the main difference between them being that one is windows 2k 
server and the other one is windows 2k3 server (std ed)


any ideas ?

thanks

- Original Message - 
From: Nate Nielsen [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Thursday, November 17, 2005 4:00 PM
Subject: [PHP] php + cURL issue


I'm having an issue with cURL.  I have installed it on two different boxes, 
one is working properly, and another isn't.


The script auto login's a user to a site.  One server it works as expected 
and logs the user in, the other it does not.  It appears the cookie data 
that is being saved is different on the two machines from the login.


The code itself is identical.   The result on the two servers is different. 
I've fiddled with this thing for a couple weeks, and now its too late to 
mess with it anymore as I have a launch target I need to hit.


What I'd like is a php / IIS guru to help me fix this.  I will give you 
remote desktop access to the server and you can take it away from there.  I 
just need you to get the script running on the server the same as the other. 
The script is already there, its very simplistic, only about 50 lines or so, 
no database interaction, nothing fancy at all.  I'm not a strong PHP guy, so 
its very simplistic.  (again though, it works on other server, so its not a 
code issue)


In return, I'll give you free hosting on one of my dedicated servers for 6 
months.  This is not your average shared hosting, I dont host sites for a 
living, I only host clients I code for - so there is only a handful of 
people on each server.  In fact, the server you will be on, you will be the 
only person on it at this time.  You'll have access to PHP (obviously), 
ColdFusion MX 7 (the latest, greatest version), MSSQL 2k and/or mySQL 
(different server), and if you need additional services, we can work that 
out.


Please email me if you are interested in helping or if you have any ideas 
please!!


Thanks in advance!

- Nate Nielsen
[EMAIL PROTECTED] 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php + cURL issue

2005-11-17 Thread Curt Zirzow
On Thu, Nov 17, 2005 at 04:00:21PM -0600, Nate Nielsen wrote:
 I'm having an issue with cURL.  I have installed it on two different boxes, 
 one is working properly, and another isn't.
 
 The script auto login's a user to a site.  One server it works as expected 
 and logs the user in, the other it does not.  It appears the cookie data that 
 is being saved is different on the two machines from the login.
 

what are the differences in the cookies?

have you tried curl_setopt() with:
  curl_setopt($ch, CURLOPT_VERBOSE);
  curl_setopt($ch, CURLOPT_STDERR, $filehandle); // where to log

have you looked at the output on the login request to ensure that
the content is being returned as expected.

What does the code look like?


Curt.
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php