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 amichel...@hotmail.com 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 end

Re: [PHP] CURL -d

2012-03-26 Thread Ashley Sheridan
On Mon, 2012-03-26 at 09:45 -0600, QI.VOLMAR QI wrote: 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

Re: [PHP] CURL -d

2012-03-26 Thread QI.VOLMAR QI
I know guess that it is a POST field, but the detail is on simulate the -d without a label. I've already looked at setopt man page, but nothing seems like what I need. 2012/3/26 Ashley Sheridan a...@ashleysheridan.co.uk ** On Mon, 2012-03-26 at 09:45 -0600, QI.VOLMAR QI wrote: I have this

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,

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 FeIn
http://www.php.net/manual/en/function.stream-context-create.php On Fri, Mar 2, 2012 at 4:44 PM, Nibin V M nibi...@gmail.com 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

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. ?php $curl = curl_init(); curl_setopt ($curl, CURLOPT_URL,

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

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Micky Hulse
Hello, On Fri, Mar 2, 2012 at 8:07 AM, Jim Lucas li...@cmsws.com 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).

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Daniel Brown
On Fri, Mar 2, 2012 at 11:29, Nibin V M nibi...@gmail.com 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

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 ?php $opts = array( 'http'=array( 'method'=GET, 'header'=Accept-language: en\r\n .

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Matijn Woudt
On Fri, Mar 2, 2012 at 6:09 PM, Nibin V M nibi...@gmail.com 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 ?php $opts = array(  

Re: [PHP] Curl problems

2012-01-11 Thread Matijn Woudt
On Thu, Jan 12, 2012 at 12:20 AM, Rick Dwyer rpdw...@earthlink.net 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

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 rpdw...@earthlink.net 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

Re: [PHP] Curl problems

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

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 they do. -- PHP

Re: [PHP] Curl cost

2011-09-28 Thread Daniel Brown
On Wed, Sep 28, 2011 at 11:54, Jim Lucas li...@cmsws.com 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

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 li...@cmsws.com 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

Re: [PHP] Curl cost

2011-09-28 Thread Daniel Brown
On Wed, Sep 28, 2011 at 14:13, Jim Lucas li...@cmsws.com 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. -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List

Re: [PHP] Curl cost

2011-09-28 Thread tamouse mailing lists
On Wed, Sep 28, 2011 at 4:06 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Sep 28, 2011 at 3:28 AM, muad shibani muad.shib...@gmail.com 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

Re: [PHP] curl rtmp

2011-01-09 Thread David Hutto
On Sun, Jan 9, 2011 at 2:58 PM, Tontonq Tontonq root...@gmail.com 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

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 instead of at the

Re: [PHP] curl and variable parameters in hyperlink

2010-11-24 Thread Daniel Molina Wegener
On Wednesday 24 November 2010, Bob Keightley bob.keight...@virgin.net 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 =

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 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. The external page I am

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

RE: [PHP] curl and variable parameters in hyperlink

2010-11-23 Thread admin
Depending on how the website is setup you can curl or soap parameters. http://www.php.net/manual/en/book.curl.php http://www.php.net/manual/en/book.soap.php Richard L. Buskirk -Original Message- From: Bob Keightley [mailto:bob.keight...@virgin.net] Sent: Tuesday, November 23, 2010

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=val1param2=val2;; foreach ($_POST as $key=$post) {

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

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 that

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 hit the stop

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Andrew Ballard
On Thu, Jun 17, 2010 at 9:05 AM, Michael Alaimo mala...@sesda2.com 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

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 mala...@sesda2.com wrote: I am trying to use register_shutdown_function.  Previous to the script

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-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

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 you. Have

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-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 is: ISPs have a different range

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 target page - once, but then on

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 -Original Message- From: ioan...@btinternet.com

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

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 mechanism in

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

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 successful connection The answer I

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 2010/04/27 1:13, Tommy Pham wrote: -Original

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

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,

Re: [PHP] cURL on freebsd

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 7:36 PM, Shane Hill shanehil...@gmail.com 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

Re: [PHP] cURL on freebsd

2010-03-30 Thread Shane Hill
On Mar 30, 2010, at 19:50, Tommy Pham tommy...@gmail.com wrote: On Tue, Mar 30, 2010 at 7:36 PM, Shane Hill shanehil...@gmail.com 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

Re: [PHP] Curl output

2009-10-02 Thread kranthi
using the base tag is a solution to your problem if the links are relative.. http://www.w3schools.com/TAGS/tag_base.asp but I am not sure if base tag works outside html/html try... base href=URL/base before curl_init() where URL is parsed using PHP's parse_url() function on http://example.com

Re: [PHP] Curl output

2009-10-02 Thread Ashley Sheridan
On Fri, 2009-10-02 at 12:51 +0530, kranthi wrote: using the base tag is a solution to your problem if the links are relative.. http://www.w3schools.com/TAGS/tag_base.asp but I am not sure if base tag works outside html/html try... base href=URL/base before curl_init() where URL is

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 to

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

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 should

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 you meant

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? thanks

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();

Re: [PHP] CURL intermittant problem

2009-06-11 Thread Daniel Brown
On Thu, Jun 11, 2009 at 19:07, ioan...@btinternet.comioan...@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

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 ?php echo exec( 'ping 10.20.30.40' ); ? 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 danbr...@php.net wrote: On Thu,

Re: [PHP] cURL loop?

2009-05-29 Thread Daniel Brown
On Thu, May 28, 2009 at 23:31, espontaneo acohln...@gmail.com 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

Re: [PHP] cURL - Error 400

2009-04-20 Thread haliphax
On Fri, Apr 17, 2009 at 7:58 AM, David quick.webmas...@gmail.com wrote: On Fri, Apr 17, 2009 at 8:55 PM, Andrew Ballard aball...@gmail.com wrote: On Fri, Apr 17, 2009 at 12:41 AM, David quick.webmas...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:48 PM, haliphax halip...@gmail.com wrote:

Re: [PHP] cURL - Error 400

2009-04-20 Thread David
On Mon, Apr 20, 2009 at 9:35 PM, haliphax halip...@gmail.com wrote: On Fri, Apr 17, 2009 at 7:58 AM, David quick.webmas...@gmail.com wrote: On Fri, Apr 17, 2009 at 8:55 PM, Andrew Ballard aball...@gmail.com wrote: On Fri, Apr 17, 2009 at 12:41 AM, David quick.webmas...@gmail.com wrote:

Re: [PHP] cURL - Error 400

2009-04-17 Thread haliphax
On Thu, Apr 16, 2009 at 11:41 PM, David quick.webmas...@gmail.com wrote: Hi, Sorry, that didn't work. The website is still returning error 400 with CURLOPT_COOKIESESSION and CURLOPT_COOKIE enabled. I did some experimentation in Firefox by blocking and deleting all cookies from the site.

Re: [PHP] cURL - Error 400

2009-04-17 Thread David
On Fri, Apr 17, 2009 at 8:20 PM, haliphax halip...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:41 PM, David quick.webmas...@gmail.com wrote: Hi, Sorry, that didn't work. The website is still returning error 400 with CURLOPT_COOKIESESSION and CURLOPT_COOKIE enabled. I did some

Re: [PHP] cURL - Error 400

2009-04-17 Thread Andrew Ballard
On Fri, Apr 17, 2009 at 12:41 AM, David quick.webmas...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:48 PM, haliphax halip...@gmail.com wrote: On Wed, Apr 15, 2009 at 9:17 PM, David quick.webmas...@gmail.com wrote: Except I also need to POST data to the server to login. After I've logged in,

Re: [PHP] cURL - Error 400

2009-04-17 Thread David
On Fri, Apr 17, 2009 at 8:55 PM, Andrew Ballard aball...@gmail.com wrote: On Fri, Apr 17, 2009 at 12:41 AM, David quick.webmas...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:48 PM, haliphax halip...@gmail.com wrote: On Wed, Apr 15, 2009 at 9:17 PM, David quick.webmas...@gmail.com wrote:

Re: [PHP] cURL Download

2009-04-17 Thread Yannick Mortier
2009/4/17 Robbert van Andel robb...@vafam.com: I've been struggling to download a file from a network file share using cURL, or whatever else will work.   All I want to do is get the contents of a text file.  But when I run the code below I get this error Error: 37 - Couldn't open file

Re: [PHP] cURL - Error 400

2009-04-16 Thread haliphax
On Wed, Apr 15, 2009 at 9:17 PM, David quick.webmas...@gmail.com wrote: Except I also need to POST data to the server to login. After I've logged in, I then need to use cookies to maintain a session. Doing that via file_get_contents() just isn't possible. Thanks On Thu, Apr 16, 2009 at

Re: [PHP] cURL - Error 400

2009-04-16 Thread David
Hi, Sorry, that didn't work. The website is still returning error 400 with CURLOPT_COOKIESESSION and CURLOPT_COOKIE enabled. I did some experimentation in Firefox by blocking and deleting all cookies from the site. When I then visited the site, I was able to reach the logon page without

Re: [PHP] cURL - Error 400

2009-04-15 Thread haliphax
On Wed, Apr 15, 2009 at 10:36 AM, David quick.webmas...@gmail.com wrote: I was wondering if anyone could please help me with this cURL script since I keep getting error 400 from the web server: http://pastebin.ca/1392840 It worked until around a month ago which is when they presumably made

Re: [PHP] cURL - Error 400

2009-04-15 Thread David
Except I also need to POST data to the server to login. After I've logged in, I then need to use cookies to maintain a session. Doing that via file_get_contents() just isn't possible. Thanks On Thu, Apr 16, 2009 at 2:30 AM, haliphax halip...@gmail.com wrote: On Wed, Apr 15, 2009 at 10:36

Re: [PHP] CURL vs stream_socket_client

2009-02-01 Thread Yves Arsenault
Hey there, First off I'd like to thank the Magento module's author for the support. The canada post shipping module now works! The problem was a little bit different then I saw in other posts and forums. Basically, the curl function wouldn't connect to the sellonline.canadapost.ca system on the

RE: [PHP] CURL vs stream_socket_client

2009-01-30 Thread Boyd, Todd M.
-Original Message- From: Yves Arsenault [mailto:yves.arsena...@gmail.com] Sent: Friday, January 30, 2009 9:40 AM To: PHP List Subject: [PHP] CURL vs stream_socket_client Hi there, I'm not in PHP on a daily basis, but from time to time I get to program a little in PHP for certain

Re: [PHP] CURL vs stream_socket_client

2009-01-30 Thread Yves Arsenault
Hi Todd, First off.. thanks for the reply. I've dumped the xml data and tried to view it in Firefox... commented out the curl code (and all the other stuff) just to see what exactly was getting passed. Firefox did not display it as it does xml... like when I got directly to that xml file with

Re: [PHP] CURL vs stream_socket_client

2009-01-30 Thread Yves Arsenault
Hi all, It really seems to me that somehow when the curl command is run that it's not posting the request to port 3 to sellonline.canadapost.ca. That's the impression I'm under. Any ideas? Yves Arsenault Love is the only force capable of transforming an enemy into a friend. --Martin Luther

Re: [PHP] curl can't connect to my home server

2009-01-20 Thread Eric Butera
On Tue, Jan 20, 2009 at 1:33 PM, Rene Veerman rene7...@gmail.com wrote: Hi, I've been stuck on this problem i'm having after i re-installed my linux (debian) machine last month.. I'm building a CMS with video import capabilities, but since it runs on shared hosting i need to make a cURL

Re: [PHP] curl can't connect to my home server

2009-01-20 Thread Jason Pruim
On Jan 20, 2009, at 1:33 PM, Rene Veerman wrote: Hi, I've been stuck on this problem i'm having after i re-installed my linux (debian) machine last month.. I'm building a CMS with video import capabilities, but since it runs on shared hosting i need to make a cURL POST call to a URL on

Re: [PHP] Curl with asp pages....

2008-12-17 Thread shiplu
On Wed, Dec 17, 2008 at 6:28 AM, ioannes ioan...@btinternet.com wrote: shiplu wrote: On Sun, Dec 7, 2008 at 8:22 AM, ioannes ioan...@btinternet.com wrote: shiplu wrote: When you are dealing with curl, anything can be done as long as its a HTTP request.Its all about sending HTTP headers

Re: [PHP] Curl with asp pages....

2008-12-17 Thread Benjamin Hawkes-Lewis
Ashley Sheridan wrote: There is a slight difference in how ASP handles multiple form fields that share the same name (as well as SELECT MULTIPLE lists) such that ASP does not need (and should not use) square brackets in field names the way PHP does. Andrew I thought that square brackets were

Re: [PHP] Curl with asp pages....

2008-12-07 Thread shiplu
On Sun, Dec 7, 2008 at 8:22 AM, ioannes [EMAIL PROTECTED] wrote: shiplu wrote: When you are dealing with curl, anything can be done as long as its a HTTP request.Its all about sending HTTP headers and content. To parse HTML content you can use HTML parser. Regular expression may not work

Re: [PHP] Curl with asp pages....

2008-11-28 Thread Ashley Sheridan
On Fri, 2008-11-28 at 01:13 -0500, Andrew Ballard wrote: On Thu, Nov 27, 2008 at 7:12 PM, ioannes [EMAIL PROTECTED] wrote: What are the differences between asp and non-asp pages when you are curling them? Apart from ,as referred to in php.net, you need to urlencode the post values... Do

Re: [PHP] Curl with asp pages....

2008-11-28 Thread ceo
The one thing that's always tripped me up with ASP sites is that you have to add EVERY input, even the type=submit with the correct value from the one and only submit button on the page. Not sure what the ASP code monkeys are doing with their point-and-click UI, but I presume it's just a

Re: [PHP] Curl with asp pages....

2008-11-28 Thread Andrew Ballard
On Fri, Nov 28, 2008 at 9:59 AM, [EMAIL PROTECTED] wrote: The one thing that's always tripped me up with ASP sites is that you have to add EVERY input, even the type=submit with the correct value from the one and only submit button on the page. Again, I think that's the ASP.NET part. Not

Re: [PHP] Curl with asp pages....

2008-11-28 Thread Andrew Ballard
On Fri, Nov 28, 2008 at 10:08 AM, [EMAIL PROTECTED] wrote: There is a slight difference in how ASP handles multiple form fields that share the same name (as well as SELECT MULTIPLE lists) such that ASP does not need (and should not use) square brackets in field names the way PHP does.

Re: [PHP] Curl with asp pages....

2008-11-28 Thread ioannes
Andrew Ballard wrote: On Fri, Nov 28, 2008 at 9:59 AM, [EMAIL PROTECTED] wrote: The one thing that's always tripped me up with ASP sites is that you have to add EVERY input, even the type=submit with the correct value from the one and only submit button on the page. Again, I think

Re: [PHP] Curl with asp pages....

2008-11-28 Thread shiplu
When you are dealing with curl, anything can be done as long as its a HTTP request.Its all about sending HTTP headers and content. To parse HTML content you can use HTML parser. Regular expression may not work each time. Pattern changes over time. Download Wireshark. Collect 2 sample request and

Re: [PHP] Curl with asp pages....

2008-11-27 Thread Andrew Ballard
On Thu, Nov 27, 2008 at 7:12 PM, ioannes [EMAIL PROTECTED] wrote: What are the differences between asp and non-asp pages when you are curling them? Apart from ,as referred to in php.net, you need to urlencode the post values... Do you also need to urlencode the variable names? And if the

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-10 Thread ioannes
I would like someone to help me on this outside the group discussion. Is there anyone out there that would look at a curl problem with me? Thanks, John ioannes wrote: My current theory on this is that the initial input page creates a per-session cookie. Is CURL able to send this when the

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-08 Thread ioannes
My current theory on this is that the initial input page creates a per-session cookie. Is CURL able to send this when the page is submitted and if so how do I find out the name and value of the cookie as per my reading it is not stored on the computer, though I reckon it must be there

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-08 Thread ioannes
The way this page works is you access index.asp?SerialNo=abc123 from a link, that is re-directed to a frameset containing the main page, main.asp, just that. main.asp does not have any input fields showing the SerialNo, there is a comment with it but that is all. Fom this page, you input

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-07 Thread ioannes
My code is as below. It comes back with 'Bad session variable name - CompanySerialNo' from the site.but the COOKIEJAR does not show this variable name and it is not sent, it just shows: www.targetsite.comFALSE/FALSE0 ASPSESSIONIDQCSQDTABLKAONANAFJPNMFFECLFNCLBP There

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-02 Thread ioannes
Thanks Chris and Andrew, An interesting article here on VIEWSTATE in asp: http://www.dotnetjohn.com/articles.aspx?articleid=71 refers to MAC encoding using SHA1 or MD5, alternatively Triple DES symmetric algorithm. However, in either event, VIEWSTATE seems to be just what is sent by the

RE: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-02 Thread Boyd, Todd M.
-Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 9:42 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site? ioannes wrote: I didn't get any

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-01 Thread ioannes
I didn't get any brave response on this, but given the other thread on 'encription' I was wondering could anyone decrypt the __VIEWSTATE string at the end of this message. It is part of the input page whose results page I am trying to retrieve back onto my server for further php work. I

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-01 Thread Chris
ioannes wrote: I didn't get any brave response on this, but given the other thread on 'encription' I was wondering could anyone decrypt the __VIEWSTATE string at the end of this message. It is part of the input page whose results page I am trying to retrieve back onto my server for further

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-01 Thread Chris
Chris wrote: ioannes wrote: I didn't get any brave response on this, but given the other thread on 'encription' I was wondering could anyone decrypt the __VIEWSTATE string at the end of this message. It is part of the input page whose results page I am trying to retrieve back onto my server

Re: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?

2008-07-01 Thread Andrew Ballard
On Tue, Jul 1, 2008 at 5:23 PM, ioannes [EMAIL PROTECTED] wrote: I didn't get any brave response on this, but given the other thread on 'encription' I was wondering could anyone decrypt the __VIEWSTATE string at the end of this message. It is part of the input page whose results page I am

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Test User
I added more info below and corrected the spelling of a word - very sorry to add more to your already full mailbox why will this script not submit the form - it does input data into the form - but not submit it. below is the script and then the html form.. thanks #!/usr/bin/php ?php $ch =

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Daniel Brown
On Wed, Apr 2, 2008 at 9:24 AM, Test User [EMAIL PROTECTED] wrote: why will this script not submit the form - it does input data into the form - but not submit it. below is the script and then the html form.. thanks [snip!] curl_setopt($ch,

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Test User
, 2008 8:54:16 AM Subject: Re: [PHP] cuRL script won't submit On Wed, Apr 2, 2008 at 9:24 AM, Test User [EMAIL PROTECTED] wrote: why will this script not submit the form - it does input data into the form - but not submit it. below is the script and then the html form.. thanks [snip!] curl_setopt

  1   2   3   >