NYCPHP Meetup

NYPHP.org

[nycphp-talk] cURL question

Darryle Steplight dsteplight at gmail.com
Thu Aug 4 14:57:02 EDT 2011


Hey Federico, Are you that guy that created Rain Framework? I heard
good things about it :) .

On Thu, Aug 4, 2011 at 2:51 PM, Rob <y2rob at aol.com> wrote:
> i'm writing out the response and headers out to the error log just to make
> sure there isn't any funny business with the ouput in the browser:
> [Thu Aug 04 14:22:15 2011] [error] [client 127.0.0.1] GIF89a\x01
> [Thu Aug 04 14:22:15 2011] [error] [client 127.0.0.1] HTTP/1.1 200
> OK\r\nCache-Control: no-cache\r\nPragma: no-cache\r\nContent-Type:
> image/gif\r\nExpires: -1\r\nServer: Microsoft-IIS/7.0\r\nX-AspNet-Version:
> 2.0.50727\r\nSet-Cookie: ibikukiuno=s=&h=&v=0; domain=fakedomain.com;
> expires=Sat, 04-Aug-2012 18:20:40 GMT; path=/; HttpOnly\r\nX-Powered-By:
> ASP.NET\r\nDate: Thu, 04 Aug 2011 18:20:39 GMT\r\nContent-Length:
> 807\r\n\r\nGIF89a\x01
>
> thanks for the response :)
>
>
>
> -----Original Message-----
> From: jean-baptiste verrey <jeanbaptiste.verrey at gmail.com>
> To: NYPHP Talk <talk at lists.nyphp.org>
> Sent: Thu, Aug 4, 2011 2:25 pm
> Subject: Re: [nycphp-talk] cURL question
>
> what do you mean by " the response just renders the image with the url" ?
> you mean the url is written in the image OR the url is written after the
> data (that is the code of the image)?
>
> On 4 August 2011 18:22, Rob <y2rob at aol.com> wrote:
>>
>> does any know of a way to grab an image url that gets returned as a
>> response from a curl call?  what's happening is that i am making a ping call
>> to a service and they render a pixel, but within the url of the image, there
>> is data that i need to parse out.  i've checked the headers and there isn't
>> a file location and the response just renders the image with the url.
>>
>> any ideas to how to get this?
>>
>> _______________________________________________
>> New York PHP Users Group Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> http://www.nyphp.org/Show-Participation
>
> _______________________________________________
> New York PHP Users Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/Show-Participation
>
> _______________________________________________
> New York PHP Users Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/Show-Participation
>



-- 
----------------------------------------------
"May the Source be with you."



More information about the talk mailing list