I've just tested this with Google and this is the output of url.txt (whitespace and all):
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
url = http://google.com/
I tested it with the URL you provided and it seems the response gives us a 302:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://redirect.main-hosting.com/error404.php/24?domain=earnigc.com">here</a>.</p>
</body></html>
url = http://earnigc.com/index.php?sid=1
Therefore I'd have a look at the server side code (whatever loop/function is checking the value of $_GET['sid']) and see what's going wrong there. If you're constantly getting errors, your IP address may be blocked.
Just to be clear - cURL is working as expected, it's a server side issue.
Edit
With the further information you supplied (URL is actually http://highestpaygpt.com/tools/pts/61_4f363ad4359302e.php?sid=ccarson030308_cc8e4499&earned=20&status=1) the response I got was as follows:
You do not have authorization to access this page.
url = http://highestpaygpt.com/tools/pts/61_4f363ad4359302e.php?sid=ccarson030308_cc8e4499&earned=20&status=1
Therefore cURL is working exactly as intended, it's your authorisation that is not. Look into using cookies with cURL and/or the authentication methods on the server.
Hang on a sec...
It seems like you're writing an automated cURL script to enter competitions fraudulently (and against that website's terms and conditions).
$url1is in the correct format? Are you sure your ip has not been blocked or reached an access limit? Maybe the servers needs headers?$url1in this case ishttp://highestpaygpt.com/tools/pts/61_4f363ad4359302e.php?sid=ccarson030308_cc8e4499&earned=20&status=1it seems like the script is trying to open/tools/pts/61_4f363ad4359302e.phpon itself