cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

ayuda curl

From: Yanet Ruiz B <yani_855_at_hotmail.com>
Date: Mon, 31 Mar 2008 09:11:07 -0600

buenos dias.. tengo algunas dudas sobre las limitaciones y alcances de curl, alguien me podria ayudar?, lo que pretendo hacer con curl es similar a descargar en un archivo mis correos de hotmail, enviando mi mail y password por post, lo que no se si sea posible es poder moverme dentro de esa url de forma interna mediante curl es decir poder elegir con codigo si descargo mi bandeja de entra, los elementos enviados, el correo no deseado, etc. necesito saber como moverme dentro del url... alguien podria ayudarme?
 
 
Gracias
 
 Yani
 

 
 "Si murmurar la verdad puede ser la justicia de los débiles,
 la calumnia no puede ser otra cosa que la venganza de los cobardes"
 
 
> From: curl-and-php-request@cool.haxx.se> Subject: curl-and-php Digest, Vol 31, Issue 17> To: curl-and-php@cool.haxx.se> Date: Sat, 29 Mar 2008 12:00:03 +0100> > Send curl-and-php mailing list submissions to> curl-and-php@cool.haxx.se> > To subscribe or unsubscribe via the World Wide Web, visit> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php> or, via email, send a message with subject or body 'help' to> curl-and-php-request@cool.haxx.se> > You can reach the person managing the list at> curl-and-php-owner@cool.haxx.se> > When replying, please edit your Subject line so it is more specific> than "Re: Contents of curl-and-php digest..."> > > Today's Topics:> > 1. Re: Bug or strange behavior with CURLOPT_COOKIE: cookie value> disappears (mikkel.t.kromann@get2net.dk)> 2. curl_multi does not processing multiple cURL handles in para> (Administrator Proxy-List)> 3. Re: debugging curl (V. Simsive)> 4. Re: curl_multi does not processing multiple cURL handles in> para (Daniel Stenberg)> 5. Re[2]: curl_multi does not processing multiple cURL handles> in para (V. Simsive)> 6. Re: Re: curl_multi does not processing multiple cURL handles> in para (V. Simsive)> > > ----------------------------------------------------------------------> > Message: 1> Date: Fri, 28 Mar 2008 13:58:15 +0100 (CET)> From: mikkel.t.kromann@get2net.dk> Subject: Re: Bug or strange behavior with CURLOPT_COOKIE: cookie value> disappears> To: ceo@l-i-e.com, "curl with PHP" <curl-and-php@cool.haxx.se>> Message-ID:> <57809.195.93.192.193.1206709095.squirrel@webmail.get2net.dk>> Content-Type: text/plain;charset=iso-8859-1> > No, this is a quite consistent problem with my SuSE 10.2 installation (my> PC). Changing the names of the cookies does not alter anything.> > I think that I also mentioned that the example script works smoothly and> as expected on the PHP installation on my webhotel.> > Cookies in general also work well on the problem SuSE machine. So it's not> an Apache problem.> > > thanks, Mikkel> > > > On Mon, March 24, 2008 7:49 am, Mikkel T. Kromann wrote:> >> When I try to use CURLOPT_COOKIE I'm not able to set the value of the> >> cookie to anything but empty (print_r($_COOKIE) shows only the cookie> >> name as key, while the value is empty).> >> > That seems pretty weird...> >> >> # This is the contents of target.php> >> <?php print_r($_COOKIE); ?>> >>> >> # This is the contents of wrapper.php> >> <?php> >> print "This is the $_COOKIE array output by target.php \r\n";> >> $ch = curl_init("http://10.0.0.4/cURLtest/target.php");> >> curl_setopt($ch, CURLOPT_COOKIE, "id=242; ");> >> > I have this vague notion that maybe you ought to have:> > $array('id'=>242);> > as the last arg...> >> > If so, and if curl/php are nuking everything after 'id' because it's> > not a valid PHP variable name, which would be a holdover behaviour> > from the bad ol' days of register_globals "ON", it would make sense of> > this from a Big Picture.> >> > This is mostly speculation...> >> > --> > Some people have a "gift" link here.> > Know what I want?> > I want you to buy a CD from some indie artist.> > http://cdbaby.com/from/lynch> > Yeah, I get a buck. So?> >> > _______________________________________________> > http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php> >> > > > ------------------------------> > Message: 2> Date: Fri, 28 Mar 2008 22:37:30 +0400> From: Administrator Proxy-List <v.simsive@gmail.com>> Subject: curl_multi does not processing multiple cURL handles in para> To: curl-and-php@cool.haxx.se> Message-ID: <1949191097.20080328223730@gmail.com>> Content-Type: text/plain; charset=us-ascii> > Hello,> > Description:> ------------> curl_multi does not processing multiple cURL handles in parallel when SOCKS> type proxies are used. This could be easily determined by checking the spent> time or by using any NET software to check amount of opened connections for> particular process (you will see that curl_multi opens one or max two> connections at a time)> > Reproduce code:> ---------------> $servers = file('servers.txt');> > function GetMicroTime() {> list($usec, $sec) = explode(" ", microtime());> return ((float)$usec + (float)$sec);> }> > $mh = curl_multi_init();> foreach ($servers as $server) {> $ch = curl_init();> curl_setopt($ch, CURLOPT_URL, 'http://google.com');> curl_setopt($ch, CURLOPT_TIMEOUT, 5);> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);> curl_setopt($ch, CURLOPT_ENCODING, '');> curl_setopt($ch, CURLOPT_PROXY, trim($server));> curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); > curl_multi_add_handle($mh, $ch);> }> > $microTime = GetMicroTime();> do {> do {> } while (curl_multi_exec($mh, $stillRunning) === CURLM_CALL_MULTI_PERFORM);> } while ($stillRunning); > $timeSpend = GetMicroTime() - $microTime;> > echo sprintf('%01.4f', $timeSpend);> > Contents of 'servers.txt' file:> ----------------> 58.97.1.24:8081> 221.195.1.82:81> 218.25.105.18:3129> 203.144.144.164:8081> 210.51.9.250:3129> 221.2.65.130:3129> 123.136.24.13:8081> 200.51.41.29:8081> 81.189.106.138:8081> 189.19.29.198:3129> > Expected result:> ----------------> Expected exit from the function under the specified timeout (~5 sec).> > Actual result:> --------------> While the actual value vary from 20 till 35 sec (for 10 proxies).> > p.s. If simple HTTP type proxies will be used then the result will be as> expected ~5 sec.> > p.p.s. I have submitted following bug at PHP web site but I think it is> more curl's bug rather then PHP's http://bugs.php.net/bug.php?id=44553> > > > ------------------------------> > Message: 3> Date: Fri, 28 Mar 2008 23:38:54 +0400> From: "V. Simsive" <v.simsive@gmail.com>> Subject: Re: debugging curl> To: curl-and-php@cool.haxx.se> Message-ID: <364064139.20080328233854@gmail.com>> Content-Type: text/plain; charset=us-ascii> > Hello Michael,> > > I've been trying to use the code here to get debugging information> >> > <?php $curl = curl_init();> > curl_setopt ($curl, CURLOPT_URL, "http://www.php.net");> > curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);> > curl_setopt($curl, CURLOPT_VERBOSE, 1);> > curl_exec ($curl);> > curl_close ($curl); ?>> >> > http://hudzilla.org/phpwiki/index.php?title=Debugging_Curl_scripts> >> > Yet it is providing a response as a blank screen.> > If you will enable only CURLOPT_VERBOSE all data will be sent to STDERR> as it is written in docs. and not to the browser (except the case when> you are executing script from SSH command line, in that case you> will see all debug data in your SSH window). To log debug information> you have to first: enable CURLOPT_VERBOSE and second: specify> CURLOPT_STDERR file:> > curl_setopt($ch, CURLOPT_VERBOSE, 1);> curl_setopt($ch, CURLOPT_STDERR, $fp);> > where $fp is file handle to output errors (in out case debug information)> to. e.g.> > $fp = fopen(dirname(__FILE__).'/errorlog.txt', 'w');> > That code works fine for me ;) Hope my post helps> > -- > Best regards,> Vitali mailto:v.simsive@gmail.com> > p.s. I hope this message will be added as replay and not as a new port :)> > > > ------------------------------> > Message: 4> Date: Fri, 28 Mar 2008 21:27:13 +0100 (CET)> From: Daniel Stenberg <daniel@haxx.se>> Subject: Re: curl_multi does not processing multiple cURL handles in> para> To: curl with PHP <curl-and-php@cool.haxx.se>> Message-ID: <Pine.LNX.4.64.0803282126020.28253@yvahk3.pbagnpgbe.fr>> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed> > On Fri, 28 Mar 2008, Administrator Proxy-List wrote:> > > curl_multi does not processing multiple cURL handles in parallel when SOCKS> > type proxies are used.> > And as I pointed out on the other list you posted this to, this is a known > libcurl bug mentioned in docs/KNOWN_BUGS:> > 35. Both SOCKS5 and SOCKS4 proxy connections are done blocking, which is very> bad when used with the multi interface.> > -- > Commercial curl and libcurl Technical Support: http://haxx.se/curl.html> > > ------------------------------> > Message: 5> Date: Sat, 29 Mar 2008 10:56:43 +0400> From: "V. Simsive" <v.simsive@gmail.com>> Subject: Re[2]: curl_multi does not processing multiple cURL handles> in para> To: Daniel Stenberg <daniel@haxx.se>> Cc: curl with PHP <curl-and-php@cool.haxx.se>> Message-ID: <299539930.20080329105643@gmail.com>> Content-Type: text/plain; charset=us-ascii> > Hello Daniel,> > Saturday, March 29, 2008, 12:27:13 AM, you wrote:> > >> curl_multi does not processing multiple cURL handles in parallel when SOCKS> >> type proxies are used.> > > And as I pointed out on the other list you posted this to, this is a known> > libcurl bug mentioned in docs/KNOWN_BUGS:> > > 35. Both SOCKS5 and SOCKS4 proxy connections are done blocking, which is very> > bad when used with the multi interface.> > Thank you very much for your reply. When I posted this bug report I> had used search on your site to find any relative post but I was not> succeed. I forgot to check KNOWN_BUGS section.> > Regarding to the bug, since it is known to libcurl's developers when> they are going to fix it?> > -- > Best regards,> Vitali mailto:v.simsive@gmail.com> > > > ------------------------------> > Message: 6> Date: Sat, 29 Mar 2008 11:25:18 +0400> From: "V. Simsive" <v.simsive@gmail.com>> Subject: Re: Re: curl_multi does not processing multiple cURL handles> in para> To: curl with PHP <curl-and-php@cool.haxx.se>> Message-ID: <343990417.20080329112518@gmail.com>> Content-Type: text/plain; charset=us-ascii> > Hello Daniel,> > Saturday, March 29, 2008, 12:27:13 AM, you wrote:> > >> curl_multi does not processing multiple cURL handles in parallel when SOCKS> >> type proxies are used.> > > And as I pointed out on the other list you posted this to, this is a known> > libcurl bug mentioned in docs/KNOWN_BUGS:> > > 35. Both SOCKS5 and SOCKS4 proxy connections are done blocking, which is very> > bad when used with the multi interface.> > Thank you very much for your reply. When I posted this bug report I> had used search on your site to find any relative post but I was not> succeed. I forgot to check KNOWN_BUGS section.> > Regarding to the bug, since it is known to libcurl's developers when> they are going to fix it?> > -- > Best regards,> Vitali mailto:v.simsive@gmail.com> > > > ------------------------------> > _______________________________________________> curl-and-php mailing list> curl-and-php@cool.haxx.se> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php> > > End of curl-and-php Digest, Vol 31, Issue 17> ********************************************
_________________________________________________________________
¿Aburrido de los mismos videos de siempre? Descubre Prodigy/MSN Video
http://video.msn.com/?mkt=es-mx

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-03-31