You are here: Re: [PHP] php + cURL issue « PHP « IT news, forums, messages
Re: [PHP] php + cURL issue

Posted by Curt Zirzow on 10/16/68 11:32

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=0&passwd=doglogan&submit=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=0&passwd=doglogan&submit=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.
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация