cannot get aspx page content with curl
<p>have strange problem.
Have url for some aspx page
when trying it in the browser i can see the content. (text content only one number nothing more) 
but when trying to get it with curl from my php server i have empty string as the result.
not sure why.
was trying many different headers, also user-agent like:</p>

<pre><code> $header = array(
    "User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)",
        "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Encoding: gzip, deflate",
"Accept-Language: pl,en-us;q=0.7,en;q=0.3",
"Cache-Control:   max-age=0",
"Connection: keep-alive",
"Pragma: no-cache",
 "Content-Type: application/x-www-form-urlencoded; charset=utf-8"

      );

      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, SUBMIT_URL );
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION  ,1); 
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );

      curl_setopt($ch, CURLOPT_POST,           true );
      curl_setopt($ch, CURLOPT_POSTFIELDS,     $post);
      curl_setopt($ch, CURLOPT_HEADER      ,1);
      curl_setopt($ch, CURLOPT_HTTPHEADER,   $header);
</code></pre>

<p>but no luck. really don't know what else can be wrong? maybe something on the aspx side?</p>
