include_URL behavior L8 vs L9

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

include_URL behavior L8 vs L9

Marc Pinnell-3
Looking for confirmation.

I have a script that steps through the domains I host. Been working on converting to L9. Some of the domains have 301 redirects (domain.com ==> www.domain.com). In L8, include_URL follows the redirect and returns the final page. L9, however, appears to be returning the apache "error" page that says the page has been redirected. Can anyone confirm this?

                        $urlReturn = (
                                        include_url('http://' + #oneSite(::domain) + '/',
                           -sendmimeheaders=array('User-Agent'='Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6'),
                           -timeout = 30,
                           -retrieveMimeHeaders = 'site_headers',
                           -string=TRUE
                           ));


Marc


Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: include_URL behavior L8 vs L9

Steffan A. Cline
Try adding a

,-options=array(CURLOPT_FOLLOWLOCATION=1)



Thanks,
Steffan

---------------------------------------------------------------
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline   [hidden email]
http://www.ExecuChoice.net                 Phoenix, Arizona USA
                 
---------------------------------------------------------------






On 11/13/14, 5:22 PM, "Marc Pinnell" <[hidden email]> wrote:

>Looking for confirmation.
>
>I have a script that steps through the domains I host. Been working on
>converting to L9. Some of the domains have 301 redirects (domain.com ==>
>www.domain.com). In L8, include_URL follows the redirect and returns the
>final page. L9, however, appears to be returning the apache "error" page
>that says the page has been redirected. Can anyone confirm this?
>
> $urlReturn = (
> include_url('http://' + #oneSite(::domain) + '/',
>           -sendmimeheaders=array('User-Agent'='Mozilla/5.0 (Macintosh;
>U; Intel Mac OS X 10.6; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6'),
>           -timeout = 30,
>           -retrieveMimeHeaders = 'site_headers',
>           -string=TRUE
>           ));
>
>
>Marc
>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: include_URL behavior L8 vs L9

Marc Pinnell-3
That did the trick!

So does that mean that follow is the default in L8 and no-follow is the default in L9?

Thanks
marc


On Nov 13, 2014, at 4:40 PM, Steffan A. Cline <[hidden email]> wrote:

> Try adding a
>
> ,-options=array(CURLOPT_FOLLOWLOCATION=1)
>
>
>
> Thanks,
> Steffan
>
> ---------------------------------------------------------------
> T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
> Steffan A. Cline   [hidden email]
> http://www.ExecuChoice.net                 Phoenix, Arizona USA
>
> ---------------------------------------------------------------
>
>
>
>
>
>
> On 11/13/14, 5:22 PM, "Marc Pinnell" <[hidden email]> wrote:
>
>> Looking for confirmation.
>>
>> I have a script that steps through the domains I host. Been working on
>> converting to L9. Some of the domains have 301 redirects (domain.com ==>
>> www.domain.com). In L8, include_URL follows the redirect and returns the
>> final page. L9, however, appears to be returning the apache "error" page
>> that says the page has been redirected. Can anyone confirm this?
>>
>> $urlReturn = (
>> include_url('http://' + #oneSite(::domain) + '/',
>>           -sendmimeheaders=array('User-Agent'='Mozilla/5.0 (Macintosh;
>> U; Intel Mac OS X 10.6; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6'),
>>           -timeout = 30,
>>           -retrieveMimeHeaders = 'site_headers',
>>           -string=TRUE
>>           ));
>>
>>
>> Marc
>>
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: include_URL behavior L8 vs L9

Steffan A. Cline
Seems so. I didn't know that one until I looked it up in the docs.


Thanks,
Steffan

---------------------------------------------------------------
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline   [hidden email]
http://www.ExecuChoice.net                 Phoenix, Arizona USA
                 
---------------------------------------------------------------






On 11/13/14, 6:02 PM, "Marc Pinnell" <[hidden email]> wrote:

>That did the trick!
>
>So does that mean that follow is the default in L8 and no-follow is the
>default in L9?
>
>Thanks
>marc
>
>
>On Nov 13, 2014, at 4:40 PM, Steffan A. Cline <[hidden email]> wrote:
>
>> Try adding a
>>
>> ,-options=array(CURLOPT_FOLLOWLOCATION=1)
>>
>>
>>
>> Thanks,
>> Steffan
>>
>> ---------------------------------------------------------------
>> T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
>> Steffan A. Cline   [hidden email]
>> http://www.ExecuChoice.net                 Phoenix, Arizona USA
>>
>> ---------------------------------------------------------------
>>
>>
>>
>>
>>
>>
>> On 11/13/14, 5:22 PM, "Marc Pinnell" <[hidden email]>
>>wrote:
>>
>>> Looking for confirmation.
>>>
>>> I have a script that steps through the domains I host. Been working on
>>> converting to L9. Some of the domains have 301 redirects (domain.com
>>>==>
>>> www.domain.com). In L8, include_URL follows the redirect and returns
>>>the
>>> final page. L9, however, appears to be returning the apache "error"
>>>page
>>> that says the page has been redirected. Can anyone confirm this?
>>>
>>> $urlReturn = (
>>> include_url('http://' + #oneSite(::domain) + '/',
>>>           -sendmimeheaders=array('User-Agent'='Mozilla/5.0
>>>(Macintosh;
>>> U; Intel Mac OS X 10.6; en-US; rv:1.9.2.6) Gecko/20100625
>>>Firefox/3.6.6'),
>>>           -timeout = 30,
>>>           -retrieveMimeHeaders = 'site_headers',
>>>           -string=TRUE
>>>           ));
>>>
>>>
>>> Marc
>>>
>>>
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>>
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>