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

curl-and-php

Re: What kind of output is this?

From: Colleen R. Dick <platypus_at_proaxis.com>
Date: Mon, 09 Jun 2008 18:19:54 -0700

I am just wondering about all the commented stuff at the beginning, the
fact it doesn't have a html head. It should be inert but who knows?
I would try making a copy of the page on my own server, altering only
the source of the javascript to actually point to the full path of the
server in question and seeing what curl returned from that. You might
also snag a copy of that javascript and see what it's doing. Also what
is the http status when you fetch this page. It's possible that it's
doing some funky redirect for robots or something. You could also try
lying to it thru curl about your user agent. Just some ideas.

David Colter wrote:
>
> On Jun 9, 2008, at 8:16 PM, Colleen R. Dick wrote:
>
>> What do you see in viewsource when you just go to the page directly
>> with a browser?
>
> HTML with some javascript. Here's the first few lines:
>
>
> <!--START:INC\common\include.asp-->
> <!--START:INC\common\errorfns.asp-->
>
> <!--END:INC\common\errorfns.asp--><!--START:INC\common\newconstant.asp-->
>
> <!--END:INC\common\newconstant.asp--><!--START:INC\common\securityfns.asp-->
>
>
> <!--END:INC\common\securityfns.asp--><!--START:INC\common\newptintllocales.asp-->
>
>
> <!--END:INC\common\newptintllocales.asp-->
>
> <!--START:INC\common\newptintl.asp-->
>
>
> <!--END:INC\common\newptintl.asp-->
>
> <!--START:INC\common\newutility.asp-->
>
> <!--END:INC\common\newutility.asp-->
> <!--END:INC\common\include.asp--><script language="JavaScript"
> src="/jetnet/common/JScriptFunctions/SetFocus_FineGround_sihdwetva0wvv2eujmao3cv5t_FGN_V01.js"></script>
>
> <SCRIPT LANGUAGE="javascript"
> SRC="/jetnet/common/JScriptFunctions/ManageWindows_FineGround_golnu5ljm4l3mrx0z44iyifua_FGN_V01.js"></SCRIPT>
>
> <!--START:INC\common\beginpageinternal.asp-->
>
> <script language=JavaScript>
> var Start = new Date();
> function NoteTime()
> {
> var Stop = new Date();
> Diff = Stop.getTime() - Start.getTime();
> //alert(Diff);
> }
> </script>
>
> <html>
> <head>
>
>
> <title>Jetnet - Jetnet Home</title>
>
> ..... and so on for 32000 characters. It's the home page I'm looking
> for, but I can't read it in the browser when it's returned completely
> by curl_exec. That's why I was wondering if it's the encoding or
> something.
>
> Thanks for your reply, Colleen. Any ideas?
>
> David Colter
>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

Received on 2008-06-10