heminfotech Posted April 6, 2007 Share Posted April 6, 2007 HI I Want the Login Script for the below link using CURL http://tempo.sandicor.com/Roster/Scripts/Member.asp?PubID=2323 Please anyone know about it then Help ME its URGENT Quote Link to comment https://forums.phpfreaks.com/topic/45844-curl-help-needed/ Share on other sites More sharing options...
trq Posted April 6, 2007 Share Posted April 6, 2007 What part are you stuck with? Post your code, were not here to write code for you. Quote Link to comment https://forums.phpfreaks.com/topic/45844-curl-help-needed/#findComment-222760 Share on other sites More sharing options...
heminfotech Posted April 6, 2007 Author Share Posted April 6, 2007 Hi Sorry for that $url = "http://tempo.sandicor.com/Login/Login.aspx?ReturnUrl=%2fRoster%2fScripts%2fMember.asp%3fPubID%3d2323&PubID=2323"; $vars = "UserLogin_txtLoginUsername=$user&UserLogin_txtPassword =$password"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt'); // if ($method == 'POST') { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $vars); // } $data = curl_exec($ch); curl_close($ch); it gives out put as HTTP/1.1 200 OK Date: Fri, 06 Apr 2007 08:53:56 GMT Server: Microsoft-IIS/6.0 MicrosoftOfficeWebServer: 5.0_Pub X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: no-cache, no-store Pragma: no-cache Expires: -1 Content-Type: text/html; charset=utf-8 Content-Length: 10838 Followed by the login page I am new to CURL & I want to know what exactly this messages means & what will be the problems here Thanks for YOUR Support Thanks & Regards heminfotech Quote Link to comment https://forums.phpfreaks.com/topic/45844-curl-help-needed/#findComment-222780 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.