RES: [PHP] cURL issues posting to an end point

2012-10-04 Thread Alejandro Michelin Salomon
gmail.com] Enviada em: quinta-feira, 4 de outubro de 2012 15:49 Para: Alejandro Michelin Salomon Cc: PHP-General Assunto: Re: [PHP] cURL issues posting to an end point On Thu, Oct 4, 2012 at 1:35 PM, Alejandro Michelin Salomon wrote: > Bastien: > > -Mensagem original- > De: Bast

Re: [PHP] cURL issues posting to an end point

2012-10-04 Thread Bastien Koert
On Thu, Oct 4, 2012 at 1:35 PM, Alejandro Michelin Salomon wrote: > Bastien: > > -Mensagem original- > De: Bastien Koert [mailto:phps...@gmail.com] > Enviada em: quinta-feira, 4 de outubro de 2012 11:54 > Para: PHP-General > Assunto: [PHP] cURL issues posting to an

RES: [PHP] cURL issues posting to an end point

2012-10-04 Thread Alejandro Michelin Salomon
Bastien: -Mensagem original- De: Bastien Koert [mailto:phps...@gmail.com] Enviada em: quinta-feira, 4 de outubro de 2012 11:54 Para: PHP-General Assunto: [PHP] cURL issues posting to an end point Hi All, I have a page that receives third party data into my app, xml data via https post

[PHP] cURL issues posting to an end point

2012-10-04 Thread Bastien Koert
Hi All, I have a page that receives third party data into my app, xml data via https post. This works fine and I receive the data as expected. The issue I am facing is around posting XML data back as a synchronous response to the post I receive. I am using the following code: function sendXMLConf

[PHP] CURL vs Exif_imagetype()

2012-09-20 Thread Rango
Hi, I host a flash painting tool on my site, and wanted to add ability for the users to add a background image from a given url, but I have to make sure the url they add truely refers to a real jpg file, and not something else. I found a methoed with exif_imagetype() that worked except my webho

Re: [PHP] PHP CURL JSON POST Firebug

2012-09-09 Thread ioan...@btinternet.com
x27; before I added the cookies to the post array, now it just returns null $result. Looks like I am transcribing something incorrectly. John I eventually sorted this out. Solution involved: POST params needed to be json_encoded $params=json_encode(array( "name" => "

Re: [PHP] PHP CURL JSON POST Firebug

2012-09-04 Thread ioan...@btinternet.com
On 04/09/2012 18:41, Matijn Woudt wrote: On Tue, Sep 4, 2012 at 7:35 PM, ioan...@btinternet.com wrote: I am hoping someone can spot what is missing here. I am getting null result from curl-ing a page with json post variables. I try this url in my Firefox browser - http://www.targetsite.com

Re: [PHP] PHP CURL JSON POST Firebug

2012-09-04 Thread Matijn Woudt
On Tue, Sep 4, 2012 at 7:35 PM, ioan...@btinternet.com wrote: > I am hoping someone can spot what is missing here. I am getting null result > from curl-ing a page with json post variables. > > I try this url in my Firefox browser - > > http://www.targetsite.com/search.php#somevar.someothervar > >

[PHP] PHP CURL JSON POST Firebug

2012-09-04 Thread ioan...@btinternet.com
I am hoping someone can spot what is missing here. I am getting null result from curl-ing a page with json post variables. I try this url in my Firefox browser - http://www.targetsite.com/search.php#somevar.someothervar (#somevar.someothervar are irrelevant, I think, as I get the curl variab

RES: [PHP] CURL -d

2012-03-26 Thread Alejandro Michelin Salomon
length of data // This for soap action 'SOAPAction: action here ') ); $xResult = curl_exec($ch); Alejandro M.S. -Mensagem original- De: QI.VOLMAR QI [mailto:qi.vol...@gmail.com] Enviada em: segunda-feira, 26 de março de 2012 12:46 Para: PHP General Assunto: [PHP] CURL -d I have this

Re: [PHP] CURL -d

2012-03-26 Thread QI.VOLMAR QI
I have this lines: > curl -H "Content-Type: application/json" -d "hello world" \ > > "http://api.pusherapp.com/apps/17331/channels/test_channel/events?"\ > <http://api.pusherapp.com/apps/17331/channels/test_channel/events?%5C%3E> > > The

Re: [PHP] CURL -d

2012-03-26 Thread Ashley Sheridan
tion -d is for data. But How I can set it on the PHP CURL extension? > I have found that if I set something like array('Hello Word', 'name' > => 'my_name'), for the POST data may occurs. Can you give me a little > help? > Have a look at curl_setopt()

[PHP] CURL -d

2012-03-26 Thread QI.VOLMAR QI
I have this lines: curl -H "Content-Type: application/json" -d "hello world" \ "http://api.pusherapp.com/apps/17331/channels/test_channel/events?"\ The option -d is for data. But How I can set it on the PHP CURL extension? I have found that

[PHP] cURL and SSL

2012-03-07 Thread Sasan Rose
Hi, I want to change a SOAP call to curl due to ssl timeout bug of PHP Soap. My PHP version is PHP 5.2.6-1+lenny13 with Suhosin-Patch 0.9.6.2. I'm using the following SOAP call and it's handling SSL very good: $client = new SoapClient('https://92.42.55.82:8442', array('trace' => True, 'local_cert'

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Matijn Woudt
On Fri, Mar 2, 2012 at 6:09 PM, Nibin V M wrote: > Hmm..I am a php newbie ( just started learning it )... > > what my need is to display website from my server always for a > non-registered domain.This is the code I use now to display the website > > $opts = array( >  'http'=>array( >    'method'

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
Hmm..I am a php newbie ( just started learning it )... what my need is to display website from my server always for a non-registered domain.This is the code I use now to display the website array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: foo=bar\r\n"

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Daniel Brown
On Fri, Mar 2, 2012 at 11:29, Nibin V M wrote: > Thanks guys :) > > Now another problem...I use a test domain ( say blahblah.com ) for testing > this, which isn't registered yet. So with the given code the index page is > loading fine. But when I try to click on any links, it will redirect to the

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Micky Hulse
Hello, On Fri, Mar 2, 2012 at 8:07 AM, Jim Lucas wrote: >> But on some of my servers, curl isn't enabled! Is there any equivalent >> code >> to  achieve the same? I've used a combination of output buffering [1], readfile() [2] and caching (specific to the framework I was using). Simply, you cou

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
Thanks guys :) Now another problem...I use a test domain ( say blahblah.com ) for testing this, which isn't registered yet. So with the given code the index page is loading fine. But when I try to click on any links, it will redirect to the original domain which isn't exists! ( I have actually po

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Jim Lucas
On 03/02/2012 06:26 AM, Nibin V M wrote: Hello, I am trying to display the website content through a php code ( my own websites; doesn't cause copy right issues ). I use curl to display the page via the following simple code. http://mytest.com";); curl_exec ($curl); curl_close ($curl); ?> But

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread FeIn
http://www.php.net/manual/en/function.stream-context-create.php On Fri, Mar 2, 2012 at 4:44 PM, Nibin V M wrote: > Thanks Marc. But that need to add the DOM parser to the server. What I am > looking for something like "iframe" in html and that doesn't require any > additional PHP modules ( I do

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
Thanks Marc. But that need to add the DOM parser to the server. What I am looking for something like "iframe" in html and that doesn't require any additional PHP modules ( I do would like to avoid additions to the current php; that is why I didn't compiled in curl ) On Fri, Mar 2, 2012 at 8:10 PM,

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
Thanks Marc. But that need to add the DOM parser to the server. What I am looking for something like "iframe" in html and that doesn't require any additional PHP modules ( I do would like to avoid additions to the current php; that is why I didn't compiled in curl ) On Fri, Mar 2, 2012 at 7:58 PM,

[PHP] curl equivalent in PHP

2012-03-02 Thread Nibin V M
Hello, I am trying to display the website content through a php code ( my own websites; doesn't cause copy right issues ). I use curl to display the page via the following simple code. http://mytest.com";); curl_exec ($curl); curl_close ($curl); ?> But on some of my servers, curl isn't enabled!

Re: [PHP] Curl problems

2012-01-11 Thread Matijn Woudt
On Thu, Jan 12, 2012 at 12:44 AM, Rick Dwyer wrote: > On Jan 11, 2012, at 6:29 PM, Matijn Woudt wrote: > >> On Thu, Jan 12, 2012 at 12:20 AM, Rick Dwyer >> wrote: >>> >>> Hello all. >>> >>> I use curl to make a call to another page on my site... but it operates >>> erroneously sometimes worki

Re: [PHP] Curl problems

2012-01-11 Thread Rick Dwyer
On Jan 11, 2012, at 6:29 PM, Matijn Woudt wrote: On Thu, Jan 12, 2012 at 12:20 AM, Rick Dwyer wrote: Hello all. I use curl to make a call to another page on my site... but it operates erroneously sometimes working... sometimes not. The page it calls creates an email and I can see on

Re: [PHP] Curl problems

2012-01-11 Thread Matijn Woudt
On Thu, Jan 12, 2012 at 12:20 AM, Rick Dwyer wrote: > Hello all. > > I use curl to make a call to another page on my site... but it operates > erroneously sometimes working... sometimes not.  The page it calls > creates an email and I can see on the server the email in the queue when > it's wo

[PHP] Curl problems

2012-01-11 Thread Rick Dwyer
Hello all. I use curl to make a call to another page on my site... but it operates erroneously sometimes working... sometimes not. The page it calls creates an email and I can see on the server the email in the queue when it's working. If I echo out the URL the curl command is suppo

[PHP] curl ,response headers and gzip encoding

2011-11-28 Thread Tontonq Tontonq
hi i am trying to build a proxy server for opera's turbo mod $value) { $data.= "\n$name: $value"; } $data=str_replace('Host: w.com','Host: '.$domainadi,$data); $data.="\r\n\r\n"; if($_SERVER['REQUEST_METHOD']=='POST') { $data.=@file_get_contents('php://input'); } #echo $domain;exit; #echo $data

Re: [PHP] Curl cost

2011-09-28 Thread tamouse mailing lists
On Wed, Sep 28, 2011 at 4:06 PM, tamouse mailing lists wrote: > On Wed, Sep 28, 2011 at 3:28 AM, muad shibani wrote: >> what are the costs of using PHP Curl to show another websites on my site as >> stumbleon do .. >> traffic, memory or what? > > If you use curl

Fwd: [PHP] Curl cost

2011-09-28 Thread tamouse mailing lists
Forgot to include list... -- Forwarded message -- From: tamouse mailing lists Date: Wed, Sep 28, 2011 at 4:06 PM Subject: Re: [PHP] Curl cost To: muad shibani On Wed, Sep 28, 2011 at 3:28 AM, muad shibani wrote: > what are the costs of using PHP Curl to show another websi

Re: [PHP] Curl cost

2011-09-28 Thread Daniel Brown
On Wed, Sep 28, 2011 at 14:13, Jim Lucas wrote: > > I saw that, but @ss-umed it was a typo.  My bad. I'd presumed the same at first. You're in good company still. -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Curl cost

2011-09-28 Thread Jim Lucas
On 9/28/2011 9:05 AM, Daniel Brown wrote: > On Wed, Sep 28, 2011 at 11:54, Jim Lucas wrote: >> >> That isn't how stumbleupon does it. You might want to take a closer look at >> the >> HTML to see how they do what they do. > > He said stumbleON, actually. Looks like they simply aggregate >

Re: [PHP] Curl cost

2011-09-28 Thread Daniel Brown
On Wed, Sep 28, 2011 at 11:54, Jim Lucas wrote: > > That isn't how stumbleupon does it.  You might want to take a closer look at > the > HTML to see how they do what they do. He said stumbleON, actually. Looks like they simply aggregate some of your personal social networking data into a si

Re: [PHP] Curl cost

2011-09-28 Thread Jim Lucas
On 9/28/2011 1:28 AM, muad shibani wrote: > what are the costs of using PHP Curl to show another websites on my site as > stumbleon do .. > traffic, memory or what? > That isn't how stumbleupon does it. You might want to take a closer look at the HTML to see how they do what

[PHP] Curl cost

2011-09-28 Thread muad shibani
what are the costs of using PHP Curl to show another websites on my site as stumbleon do .. traffic, memory or what?

Re: [PHP] curl & rtmp

2011-01-09 Thread David Hutto
On Sun, Jan 9, 2011 at 2:58 PM, Tontonq Tontonq wrote: > does cUrl supports rtmp protocol? if so is there any example? These are obvious by searching for the terms, which seem to be quite specific to have not found an answer in the search engines. do we need > enable different library? so if not

[PHP] curl & rtmp

2011-01-09 Thread Tontonq Tontonq
does cUrl supports rtmp protocol? if so is there any example? do we need enable different library? so if not can we save rtmp by curl? if not is there any other rtmp downloader that u know ?

RE: [PHP] curl and variable parameters in hyperlink

2010-11-24 Thread Bob Keightley
Thanks to all for your interest so far but as I said, new to PHP. Changed POST to GET and all now working fine! Tommy, the third party site is fully aware of what I am doing. We pay them to use the data, as do lots of other companies in our industry. Supplying data is what they do. We could not

RE: [PHP] curl and variable parameters in hyperlink

2010-11-24 Thread Tommy Pham
> -Original Message- > From: Bob Keightley [mailto:bob.keight...@virgin.net] > Sent: Wednesday, November 24, 2010 11:25 AM > To: php-general@lists.php.net > Subject: Re: [PHP] curl and variable parameters in hyperlink > > Guess I've not explained this very well

Re: [PHP] curl and variable parameters in hyperlink

2010-11-24 Thread Bob Keightley
Guess I've not explained this very well. The external page I am fetching using another curl script has asp query hyperlinks in it. I do not know the variable names in each query or the values they have. All I want to do is replace the external url referenced in those links with a url which is

Re: [PHP] curl and variable parameters in hyperlink

2010-11-24 Thread Daniel Molina Wegener
On Wednesday 24 November 2010, "Bob Keightley" wrote: > I already have a curl script that gets the web page, but it doesn't pass > the parameters Hello Bob, > > Being new to PHP I haven't the first idea how to modify it so that it > does. > > Script is as follows: > > $url = "http://www.xx

Re: [PHP] curl and variable parameters in hyperlink

2010-11-24 Thread Adam Richardson
> > foreach ($_POST as $key=>$post) { >$post=str_replace(" ", "+", $post); >$url.=$key."=".$post."&"; >} > Hi Bob, One thing I see is that you're appending values on to the end of a url that already has 2 values, so you should place the "&" at the beginning of your line in

RE: [PHP] curl and variable parameters in hyperlink

2010-11-23 Thread Bob Keightley
I already have a curl script that gets the web page, but it doesn't pass the parameters Being new to PHP I haven't the first idea how to modify it so that it does. Script is as follows: $url = "http://www.xx.com/query.asp?param1=val1¶m2=val2";; foreach ($_POST as $key=>$post) { $po

RE: [PHP] curl and variable parameters in hyperlink

2010-11-23 Thread admin
:12 PM To: php-general@lists.php.net Subject: [PHP] curl and variable parameters in hyperlink First use of Curl so probably a very simple problem - I have a script which loads a third party web page into my site. That page contains links which have variable parameters i.e. www.blahblah.asp

[PHP] curl and variable parameters in hyperlink

2010-11-23 Thread Bob Keightley
First use of Curl so probably a very simple problem - I have a script which loads a third party web page into my site. That page contains links which have variable parameters i.e. www.blahblah.asp?param1=xxx¶m2=yyy. Any clues as to what I need to do to pass these parameters in a curl script ap

[PHP] Re: Snoopy port using PHP cURL library

2010-08-09 Thread Marc Guay
> Does anyone know if the Snoopy class has been ported to use the > built-in PHP cURL library and released publicly somewhere? I converted it myself. If anyone's interested the class is attached. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Snoopy port using PHP cURL library

2010-08-09 Thread Marc Guay
Does anyone know if the Snoopy class has been ported to use the built-in PHP cURL library and released publicly somewhere? Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] curl

2010-07-04 Thread shiplu
# yum install php4-curl or # yum install php-curl Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http

[PHP] curl

2010-07-04 Thread madunix
I have an old unix fedora system with php 4.3.11, with the following recompiled options $ php -version  PHP 4.3.11 (cli) (built: Jun  6 2006 16:20:00) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies $ php -info | grep configure Configure Comman

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Michael Alaimo
As it turns out curl_multi does not block. I was able to use that plus connection tracking to solve my problem. Thanks Ash and Andrew. Mike > On Thu, Jun 17, 2010 at 9:05 AM, Michael Alaimo > wrote: >> I am trying to use register_shutdown_function.  Previous to the script >> shutting down I u

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Andrew Ballard
On Thu, Jun 17, 2010 at 9:05 AM, Michael Alaimo wrote: > I am trying to use register_shutdown_function.  Previous to the script > shutting down I use curl to grab a website. > > Basically I want to know if the user has hit the stop button or left the > page prematurely. > > The only problem is tha

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Ashley Sheridan
On Thu, 2010-06-17 at 09:37 -0400, Michael Alaimo wrote: > > On Thu, 2010-06-17 at 09:05 -0400, Michael Alaimo wrote: > > > >> I am trying to use register_shutdown_function. Previous to the script > >> shutting down I use curl to grab a website. > >> > >> Basically I want to know if the user has

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Michael Alaimo
> On Thu, 2010-06-17 at 09:05 -0400, Michael Alaimo wrote: > >> I am trying to use register_shutdown_function. Previous to the script >> shutting down I use curl to grab a website. >> >> Basically I want to know if the user has hit the stop button or left the >> page prematurely. >> >> The only pr

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Ashley Sheridan
On Thu, 2010-06-17 at 09:05 -0400, Michael Alaimo wrote: > I am trying to use register_shutdown_function. Previous to the script > shutting down I use curl to grab a website. > > Basically I want to know if the user has hit the stop button or left the > page prematurely. > > The only problem is

[PHP] curl help or other suggestion

2010-06-17 Thread Michael Alaimo
I am trying to use register_shutdown_function. Previous to the script shutting down I use curl to grab a website. Basically I want to know if the user has hit the stop button or left the page prematurely. The only problem is that curl runs and finishes its call before the shutdown function is ca

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-29 Thread Gary .
On 4/29/10, ioan...@btinternet.com wrote: > On 2010/04/29 19:46, Gary . wrote: >> Failed to connect to host is a pretty strange error if they're doing >> anything regarding cookies and so on, IMO - I think I'd expect at >> least a connection to be established before they decide they don't >> like y

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-29 Thread ioan...@btinternet.com
On 2010/04/29 19:46, Gary . wrote: On 4/25/10, ioan...@btinternet.com wrote: I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. Failed to connect to host is a pretty strange error if they'

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-29 Thread Gary .
On 4/25/10, ioan...@btinternet.com wrote: > I can return a target page - once, but then on refresh within a few > hours the script curl_error is that it cannot connect to the host and > return is empty. Failed to connect to host is a pretty strange error if they're doing anything regarding cookies

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-28 Thread Tommy Pham
> -Original Message- > From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] > Sent: Wednesday, April 28, 2010 7:03 AM > To: 'PHP' > Subject: Re: [PHP] CURL cannot connect to URL - IP address - after successful > connection > > I think the answer

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-28 Thread ioan...@btinternet.com
I think the answer is: ISPs have a different range of addresses from host providers, so it is possible to block requests from host servers, so from scripts. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Tommy Pham
> -Original Message- > From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] > Sent: Monday, April 26, 2010 7:10 AM > To: Tommy Pham > Subject: Re: [PHP] CURL cannot connect to URL - IP address - after successful > connection > > > > On 201

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Tommy Pham
> -Original Message- > From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] > Sent: Sunday, April 25, 2010 10:44 PM > To: a...@ashleysheridan.co.uk; tommy...@gmail.com >> Tommy Pham > Subject: Re: [PHP] CURL cannot connect to URL - IP address - after su

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread ioan...@btinternet.com
On 2010/04/26 20:01, Ashley Sheridan wrote: How frequently do you request the page? Maybe playing about with that would resolve it? Is it possible to randomise the request frequency a bit? Thanks, Ash http://www.ashleysheridan.co.uk Just manually for testing, and it would be used for huma

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 12:05 +0900, ioan...@btinternet.com wrote: > >> > >> Just to eliminate all possibilities, are you to open the same URL/URI in > > the > >> web pages repeatedly? Also, what happens when you fake the user agent in > >> the web browser? The target site may have some anti bot m

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread ioan...@btinternet.com
Just to eliminate all possibilities, are you to open the same URL/URI in the web pages repeatedly? Also, what happens when you fake the user agent in the web browser? The target site may have some anti bot mechanism in place to reduce stress/load on the server(s). Regards, Tommy One more

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Tommy Pham
> -Original Message- > From: Tommy Pham [mailto:tommy...@gmail.com] > Sent: Monday, April 26, 2010 1:59 AM > To: 'php-general@lists.php.net' > Subject: RE: [PHP] CURL cannot connect to URL - IP address - after successful > connection > > >

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Tommy Pham
> -Original Message- > From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] > Sent: Sunday, April 25, 2010 6:18 AM > To: php-general@lists.php.net > Subject: [PHP] CURL cannot connect to URL - IP address - after successful > connection > > I can return a

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-25 Thread ioan...@btinternet.com
This is all I see in the error log: SUEXEC error_log: [2010-04-25 16:45:42]: uid: (1116/myname) gid: (1118/myname) cmd: fcgiwrapper John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-25 Thread Ashley Sheridan
On Sun, 2010-04-25 at 22:17 +0900, ioan...@btinternet.com wrote: > I can return a target page - once, but then on refresh within a few > hours the script curl_error is that it cannot connect to the host and > return is empty. The target URL is an ip address, not a named url, so > maybe it has

[PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-25 Thread ioan...@btinternet.com
I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. The target URL is an ip address, not a named url, so maybe it has something to do with DNS. I am on a shared server. Any ideas on why thi

Re: [PHP] cURL on freebsd

2010-03-30 Thread Shane Hill
On Mar 30, 2010, at 19:50, Tommy Pham wrote: On Tue, Mar 30, 2010 at 7:36 PM, Shane Hill wrote: can anyone tell me why the cURL code below produces a POST request as expected on linux, but the same code on freebsd is forced to be a GET request? the linux box is running php 5.2.11 the freebs

Re: [PHP] cURL on freebsd

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 7:36 PM, Shane Hill wrote: > can anyone tell me why the cURL code below produces a POST request as > expected on linux, but the same code on freebsd is forced to be a GET > request? > > the linux box is running php 5.2.11 > the freebsd box is running 5.3.2 > > is there a bu

[PHP] cURL on freebsd

2010-03-30 Thread Shane Hill
can anyone tell me why the cURL code below produces a POST request as expected on linux, but the same code on freebsd is forced to be a GET request? the linux box is running php 5.2.11 the freebsd box is running 5.3.2 is there a bug in 5.3.2? a search does not turn anything up.

[PHP] curl spider and being a good citizen

2009-10-24 Thread Michael A. Peters
I'm writing a custom search engine for my site, it seemed easier than modifying sphyder (what I currently use) to do what I want especially since sphyder has a lot of stuff that isn't personally of use to me. One of the things I want to do when I index is list external links and check them.

Re: [PHP] Curl output

2009-10-02 Thread Ashley Sheridan
On Fri, 2009-10-02 at 18:07 +0530, kranthi wrote: > >> I've read that the upcoming Firefox 4 may have some features built in > >> for this sort of thing, and there are plugins out there for most > >> browsers that can do this as an added layer of security. > Sorry but I could not understand what yo

Re: [PHP] Curl output

2009-10-02 Thread kranthi
>> I've read that the upcoming Firefox 4 may have some features built in >> for this sort of thing, and there are plugins out there for most >> browsers that can do this as an added layer of security. Sorry but I could not understand what you meant by "this" coming back to original problem... you

Re: [PHP] Curl output

2009-10-02 Thread Ashley Sheridan
On Fri, 2009-10-02 at 15:59 +0530, kranthi wrote: > not many users use those kind of browsers, because if they do most of > the websites which use CDNs will not work. I've read that the upcoming Firefox 4 may have some features built in for this sort of thing, and there are plugins out there for m

Re: [PHP] Curl output

2009-10-02 Thread kranthi
>> Some browser security settings may not allow you to run Javascript code >> that exists on another server though not many users use those kind of browsers, because if they do most of the websites which use CDNs will not work. Firstly, it is not a good idea to fetch an entire web page and snow it

Re: [PHP] Curl output

2009-10-02 Thread Ashley Sheridan
On Fri, 2009-10-02 at 12:51 +0530, kranthi wrote: > using the http://www.w3schools.com/TAGS/tag_base.asp > but I am not sure if base tag works outside > > try... before curl_init() > where URL is parsed using PHP's parse_url() function on http://example.com > > in either case if there are

Re: [PHP] Curl output

2009-10-02 Thread kranthi
using the http://www.w3schools.com/TAGS/tag_base.asp but I am not sure if base tag works outside try... before curl_init() where URL is parsed using PHP's parse_url() function on http://example.com in either case if there are any external js/css files cURL wont fetch external files(and if t

Re: [PHP] Curl output

2009-10-01 Thread Jim Lucas
gbhumphrey wrote: Hi, I am doing a basical curl call and can get the webpage I want. However when it prints to the screen, it only prints the text, not css or any javascript calls that run on page load. Is there a way to make it do that? thanks using a basic curl call $curl_handle=curl_init(); c

Re: [PHP] Curl output

2009-10-01 Thread Paul M Foster
On Thu, Oct 01, 2009 at 04:37:14PM -0700, gbhumphrey wrote: > > Hi, I am doing a basical curl call and can get the webpage I want. However > when it prints to the screen, it only prints the text, not css or any > javascript calls that run on page load. > Is there a way to make it do that? > > th

[PHP] Curl output

2009-10-01 Thread gbhumphrey
Hi, I am doing a basical curl call and can get the webpage I want. However when it prints to the screen, it only prints the text, not css or any javascript calls that run on page load. Is there a way to make it do that? thanks using a basic curl call $curl_handle=curl_init(); curl_setopt($curl_ha

Re: [PHP] CURL intermittant problem

2009-06-11 Thread Martin Scotta
It looks like a connection problem, You has to make sure php can connect to the IP You can remove the IP from the source, just add an entry in the /etc/hosts file Mrtn On Thu, Jun 11, 2009 at 8:14 PM, Daniel Brown wrote: > On Thu, Jun 11, 2009 at 19:07, > ioan...@btinternet.com wrote: > > >

Re: [PHP] CURL intermittant problem

2009-06-11 Thread Daniel Brown
On Thu, Jun 11, 2009 at 19:07, ioan...@btinternet.com wrote: > > The target URL works perfectly and quicly if put directly into the browser > URL line. > > Do you know of any other reasons for problems with such a connection? Is the script being run located on the same system as which you're u

[PHP] CURL intermittant problem

2009-06-11 Thread ioan...@btinternet.com
I have been having problems with a curl script which works normally with many different URLs but had a particular intermittant problem with a url in the following format: http://10.20.30.40/0001/032/023112/filename.phtml?param1=paramvalue1¶m2=paramvalue2 etc etc. The unusual thing about th

Re: [PHP] cURL loop?

2009-05-29 Thread Daniel Brown
On Thu, May 28, 2009 at 23:31, espontaneo wrote: > > Hello! I am currently working on a script that will scrape data from a > property advertising web page. The web page has multiple pages. What I'm > getting is only the first page. What I wanted to do is to use curl to scrape > all the data from

[PHP] cURL loop?

2009-05-28 Thread espontaneo
Hello! I am currently working on a script that will scrape data from a property advertising web page. The web page has multiple pages. What I'm getting is only the first page. What I wanted to do is to use curl to scrape all the data from that page. I just learned php so I don't know how I can do

RES: RES: [PHP] CURL problems still

2009-05-12 Thread Jônatas Zechim
ett.com] Enviada em: terça-feira, 12 de maio de 2009 10:24 Para: Phpster; Miller, Terion Cc: Jônatas Zechim; PHP-General List Assunto: Re: RES: [PHP] CURL problems still > > Bastien, could you give me an example of what you mean? > would it be $Name = "" > > like

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Nathan Rixham
Nathan Rixham wrote: Miller, Terion wrote: Well I tried it and still it stopped at the "C's" 1: your script is timing out, you need to set the time limit higher set_time_limit(0); 2: foreach($html->find('table') as $table) { $rows = explode('' , $table ); $headerCells = explode('', array_shi

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Nathan Rixham
Miller, Terion wrote: Well I tried it and still it stopped at the "C's" 1: your script is timing out, you need to set the time limit higher set_time_limit(0); 2: foreach($html->find('table') as $table) { $rows = explode('' , $table ); $headerCells = explode('', array_shift($rows)); $struct =

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Miller, Terion
> > Bastien, could you give me an example of what you mean? > would it be $Name = "" > > like that? > > Thanks for the ideas everyone! > >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > Try Imitliazing the variables at the top of the

Re: RES: [PHP] CURL problems still

2009-05-11 Thread Phpster
On May 11, 2009, at 17:53, "Miller, Terion" > wrote: Bastien, could you give me an example of what you mean? would it be $Name = "" like that? Thanks for the ideas everyone! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Tr

Re: RES: [PHP] CURL problems still

2009-05-11 Thread Miller, Terion
Bastien, could you give me an example of what you mean? would it be $Name = "" like that? Thanks for the ideas everyone! > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Try Imitliazing the variables at the top of the loop

Re: RES: [PHP] CURL problems still

2009-05-11 Thread Phpster
On May 11, 2009, at 16:01, "Miller, Terion" > wrote: The error I get is from my INSERT statement It does insert the records up to C page though... The problem area: // Build your INSERT statement here $query = "INSERT into warrants (wid, name, age, warrant, bond, wnumbe

Re: RES: [PHP] CURL problems still

2009-05-11 Thread Miller, Terion
The error I get is from my INSERT statement It does insert the records up to C page though... The problem area: // Build your INSERT statement here $query = "INSERT into warrants (wid, name, age, warrant, bond, wnumber, crime) VALUES (";$query .= " '$wid', '$name', '$age

RES: [PHP] CURL problems still

2009-05-11 Thread Jônatas Zechim
Hey Guy, try to change the 'max_execution_time' ini_set('max_execution_time','1800'); -Mensagem original- De: Miller, Terion [mailto:tmil...@springfi.gannett.com] Enviada em: segunda-feira, 11 de maio de 2009 16:41 Para: PHP-General List Assunto: [PHP]

[PHP] CURL problems still

2009-05-11 Thread Miller, Terion
I'm back. I thought I had this script working but it seems to always stop at the end of the C's, so I can get it to go thru pages A-C then it stops, I have tried setting the time-out to a very large amount but it never continues to run past the same spot, it gathers all records to the end of C, th

RES: RES: RES: RES: [PHP] CURL error help

2009-05-08 Thread Jônatas Zechim
U r correct! It's ok know. -Mensagem original- De: Shawn McKenzie [mailto:nos...@mckenzies.net] Enviada em: sexta-feira, 8 de maio de 2009 13:34 Para: Miller, Terion Cc: Jônatas Zechim; PHP-General List Assunto: Re: RES: RES: RES: [PHP] CURL error help Miller, Terion wrote: >

  1   2   3   4   5   >