You are on page 1of 25

Automatic Login Using Curl

Started by rw4dmin, Jun 22 2006 08:06 AM


Reply to this topic
6 replies to this topic
#1 rw4dmin
!ewbie

"ontributors

posts
#osted 22 June 2006 $ 08:06 AM
%& you'are la(y people li)e me* +his script may help u* +his script is to automated our
lo,in to some site*
-ou must ha.e c/R0 installed to use this script*
<?php
// INIT CURL
$ch = curl_init();
// SET URL FOR THE OST FOR! LO"IN
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*$+t$rn,l-
#it$*c%./!$./$r#/L%0in*php');
// EN12LE HTT OST
curl_#$t%pt ($ch& CURLOT_OST& 3);
// SET OST 1R1!ETERS ( FOR! 41LUES FOR E1CH FIEL5
curl_#$t%pt ($ch& CURLOT_OSTFIEL5S&
'6i$l7n,.$3=6i$l78,lu$396i$l7n,.$:=6i$l78,lu$:');
// I!IT1TE CL1SSIC 2RO;SER'S 2EH14IOUR ( H1N5LE COO<IES
curl_#$t%pt ($ch& CURLOT_COO<IE=1R& 'c%%>i$*t+t');
? S$ttin0 CURLOT_RETURNTR1NSFER 8,ri,/l$ t% 3 )ill 6%rc$ cURL
? n%t t% print %ut th$ r$#ult# %6 it# @u$rA*
? In#t$,7& it )ill r$turn th$ r$#ult# ,# , #trin0 r$turn 8,lu$
? 6r%. curl_$+$c() in#t$,7 %6 th$ u#u,l tru$/6,l#$*
curl_#$t%pt ($ch& CURLOT_RETURNTR1NSFER& 3);
// EBECUTE 3#t RECUEST (FOR! LO"IN)
$#t%r$ = curl_$+$c ($ch);
// SET FILE TO 5O;NLO15
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*$+t$rn,l-
#it$*c%./!$./$r#/5%)nl%,7#/1nnu,lR$p%rt*p76');
// EBECUTE :n7 RECUEST (FILE 5O;NLO15)
$c%nt$nt = curl_$+$c ($ch);
// CLOSE CURL
curl_cl%#$ ($ch);
?D
1ac) to top
2uote
Multi2uote
#2 iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted 2 :ecember 2007 $ 08:2; #M
9ell done* % used this script to re.erse en,ineer dynamic daily emails on my website in
con<uction with <etable*=r, to a.oid ,ettin, spammed* +han)s5 ::
$4li&& 1ennett
1ac) to top
2uote
Multi2uote
#3 iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted 06 =ctober 2008 $ 2:;> #M
Great Stuff
Automatic 0o,in /sin, 4url
9ow, %'.e been throu,h so many e?amples recently tryin, to lo,in .ia curl and submit
data to a database but could not ,et it to wor) due to coo)ies etc but this wor)ed li)e a
charm5 % <ust wish %'d &ound your e?ample 6$7 hours a,o55 +han) you5
$reply by denise
1ac) to top
2uote
Multi2uote
#4 harrison858
Super Member

"ontributors

;6 posts
my4@!+:2!33
#osted 2> =ctober 2008 $ 06:;6 #M
=MA5 +hat was e?actly what % was loo)in, &or, and it too) me &ore.er to &ind a script*
+han)s, now % will use it
1ac) to top
2uote
Multi2uote
#5 iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted ; =ctober 2008 $ 06:; AM
"ow we set coo#ie$
Automatic 0o,in /sin, 4url
Replyin, to harrison868
Still not lo,in by usin, is script
$reply by !asir Ali Shah
1ac) to top
2uote
Multi2uote
#% liod
Member B0e.el C

"ontributors

7; posts
my4@!+:25!12
#osted ; =ctober 2008 $ 0>:46 AM
+han) you brother*
%tDs a small script, but it .ery help me*
1ac) to top
2uote
Multi2uote
# shadow&
0i.e your li&e so that in death you may stand side by side with your ,ods* !ot at
their &eet*

"ontributors

,67 posts
Aender:Male
0ocation:@sse?, /"
%nterests:#hoto,raphy is a bi, interest, i ha.e some photos up at my site, ape?
photo,raphs Ehttp:FFape?$photo,raphs*comG* /sin, my 0umi? , to ta)e the
photos o& course5 Hbr FIHbr FI/m computer ,ames*** photo editin, and thats
about it5
my4@!+:84!24

#osted 0 !o.ember 2008 $ 0:04 #M


A3A5 you.e answered a Juestion i couldnt be bothered to as)5
% needed to lo,in to a pa,e with a A@+ .ar to the pa,e i want, then be redirected to the
pa,e i want Enow lo,,ed inG and decrypt some te?t and i was ,ettin, stuc) at sendin,
#=S+ .ars but now it may be sol.ed5
+han)s5
!ice code too Aood use o& comments5
1ac) to top
2uote
Multi2uote
#8 iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted 27 March 200> $ 2:46 #M
Username'(asswordAutomatic 0o,in /sin, 4url
3ow do % desi,nate a username and password to use in the Automatic 0o,in /sin, c/R0
scriptK
1ac) to top
2uote
Multi2uote
#) iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted > April 200> $ 0>:6> AM
Great Code * +han#s,Automatic 0o,in /sin, 4url
+han)s &or the ,reat code it was e?actly what % needed to automate the creditin, on my
site &or those annoyin, a&&iliate networ)s that re&use to use postbac) /R0s5 %t couldn't
ha.e been more customi(ed to &it my needs5
Re,ards,+om Auilleaume
1ac) to top
2uote
Multi2uote
#1- iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted 04 June 200> $ 0:;; #M
Clear .&am/le 0f Curl!Automatic 0o,in /sin, 4url
+his was my &irst time attemptin, 4url and with your concept it made it easy to
understand* +han) you &or your post with the code*
$&eedbac) by Mar)
1ac) to top
2uote
Multi2uote
#11 iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted > September 200> $ :6 AM
hey,+han)s &or script you wrote*%t wor)s &or some system*8or some system % recei.e
messa,e L=b<ect mo.ed to here*L*4an you su,,est me what could be the reason &or thisK$
reply by .ishal
1ac) to top
2uote
Multi2uote
#12 iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted 4 !o.ember 200> $ 04:67 AM
didnAutomatic 0o,in /sin, 4url
hi, the 4/R0 script didn't word on n,in? http ser.er, anyone )now how to &i? this K the
n,in? return 404 response Enot &oundG
+han)s
$reply by sapta
1ac) to top
2uote
Multi2uote
#13 iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted 28 :ecember 200> $ 06:; AM
1egarding automatic login using curlAutomatic 0o,in /sin, 4url
3i there,
whether coo)ie &ile path inclusion is compulsory or not**K
+han)s,
Ars
1ac) to top
2uote
Multi2uote
#14 iGuest
3ail 4aesar5

"ontributors

6,876 posts
%nterests:+rap7 8ree 9eb 3ostin,, !o Ads
#osted 6 March 200 $ 06:07 AM
curl auto login with we2da3 ser3erAutomatic 0o,in /sin, 4url
3i, % would li)e to )now the possibilities to use the abo.e script &or 9@1:AM lo, in*
9ebda. will as) &or windows authentication* 4an we o.erride this usin, curl*
+han)s in ad.ance55
Mi<ay
1ac) to top
2uote
Multi2uote
#15 4h2ala4i
!ewbie

"ontributors

posts
#osted 8 May 200 $ 04:2 #M
3ey5
9here i need to insert the username and password
1ac) to top
2uote
Multi2uote
#1% Guest56r 737eoh58

Auests
#osted 07 April 20 $ 0:6 AM
harrison868, on 2> =ctober 2008 $ 06:;6 #M, said:
=MA5 +hat was e?actly what % was loo)in, &or, and it too) me &ore.er to &ind a script*
+han)s, now % will use it
II #ls show me where is my errors in this code :
<?php
// INIT CURL
$ch = curl_init();
// SET URL FOR THE OST FOR! LO"IN
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*8n-E%%.*c%./l%0in*php?
7%=l%0in');
// EN12LE HTT OST
curl_#$t%pt ($ch& CURLOT_OST& 3);
// SET OST 1R1!ETERS ( FOR! 41LUES FOR E1CH FIEL5
curl_#$t%pt ($ch& CURLOT_OSTFIEL5S&
'8/_l%0in_u#$rn,.$=.$%.un#%c%l,98/_l%0in_p,##)%r7=t3FhG+');
// I!IT1TE CL1SSIC 2RO;SER'S 2EH14IOUR ( H1N5LE COO<IES
curl_#$t%pt ($ch& CURLOT_COO<IE=1R& 'c%%>i$*t+t');
? S$ttin0 CURLOT_RETURNTR1NSFER 8,ri,/l$ t% 3 )ill 6%rc$ cURL
? n%t t% print %ut th$ r$#ult# %6 it# @u$rA*
? In#t$,7& it )ill r$turn th$ r$#ult# ,# , #trin0 r$turn 8,lu$
? 6r%. curl_$+$c() in#t$,7 %6 th$ u#u,l tru$/6,l#$*
curl_#$t%pt ($ch& CURLOT_RETURNTR1NSFER& 3);
// EBECUTE 3#t RECUEST (FOR! LO"IN)
$#t%r$ = curl_$+$c ($ch);
// SET FILE TO 5O;NLO15
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*$+t$rn,l-
#it$*c%./!$./$r#/5%)nl%,7#/1nnu,lR$p%rt*p76');
// EBECUTE :n7 RECUEST (FILE 5O;NLO15)
$c%nt$nt = curl_$+$c ($ch);
// CLOSE CURL
curl_cl%#$ ($ch);
?D
1ac) to top
2uote
Multi2uote
#1 Guest5Gi9mo58

Auests
#osted June 20 $ 2:0 #M
Mr %.%eoh, on 07 April 20 $ 0:6 AM, said:
II #ls show me where is my errors in this code :
<?php
// INIT CURL
$ch = curl_init();
// SET URL FOR THE OST FOR! LO"IN
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*8n-E%%.*c%./l%0in*php?
7%=l%0in');
// EN12LE HTT OST
curl_#$t%pt ($ch& CURLOT_OST& 3);
// SET OST 1R1!ETERS ( FOR! 41LUES FOR E1CH FIEL5
curl_#$t%pt ($ch& CURLOT_OSTFIEL5S&
'8/_l%0in_u#$rn,.$=.$%.un#%c%l,98/_l%0in_p,##)%r7=t3FhG+');
// I!IT1TE CL1SSIC 2RO;SER'S 2EH14IOUR ( H1N5LE COO<IES
curl_#$t%pt ($ch& CURLOT_COO<IE=1R& 'c%%>i$*t+t');
? S$ttin0 CURLOT_RETURNTR1NSFER 8,ri,/l$ t% 3 )ill 6%rc$ cURL
? n%t t% print %ut th$ r$#ult# %6 it# @u$rA*
? In#t$,7& it )ill r$turn th$ r$#ult# ,# , #trin0 r$turn 8,lu$
? 6r%. curl_$+$c() in#t$,7 %6 th$ u#u,l tru$/6,l#$*
curl_#$t%pt ($ch& CURLOT_RETURNTR1NSFER& 3);
// EBECUTE 3#t RECUEST (FOR! LO"IN)
$#t%r$ = curl_$+$c ($ch);
H/I// SET FILE TO 5O;NLO15
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*$+t$rn,l-
#it$*c%./!$./$r#/5%)nl%,7#/1nnu,lR$p%rt*p76');H//I
// EBECUTE :n7 RECUEST (FILE 5O;NLO15)
$c%nt$nt = curl_$+$c ($ch);
// CLOSE CURL
curl_cl%#$ ($ch);
?D
-our error is in the download /R0* -our tryin, to download a &ile &rom a pa,e you
ha.en't lo,,ed into
1ac) to top
2uote
Multi2uote
Automatic Login Using Curl
:iscussion by rw4dmin with 6 Replies*
0ast /pdate: June , 20, 2:0 pm E Miew G EMiew 0atestG
#a,e 1 of 2
pa,es*

(AG.S
2 !e?t N

Select 0an,ua,e O
rw4dmin
%& you'are la(y people li)e me* +his script may help u* +his script is to automated
our lo,in to some site*
-ou must ha.e c/R0 installed to use this script*
C0:.
<?php
// INIT CURL
$ch = curl_init();
// SET URL FOR THE OST FOR! LO"IN
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*$+t$rn,l-
#it$*c%./!$./$r#/L%0in*php');
// EN12LE HTT OST
curl_#$t%pt ($ch& CURLOT_OST& 3);
// SET OST 1R1!ETERS ( FOR! 41LUES FOR E1CH FIEL5
curl_#$t%pt ($ch& CURLOT_OSTFIEL5S&
'6i$l7n,.$3=6i$l78,lu$396i$l7n,.$:=6i$l78,lu$:');
// I!IT1TE CL1SSIC 2RO;SER'S 2EH14IOUR ( H1N5LE COO<IES
curl_#$t%pt ($ch& CURLOT_COO<IE=1R& 'c%%>i$*t+t');
? S$ttin0 CURLOT_RETURNTR1NSFER 8,ri,/l$ t% 3 )ill 6%rc$ cURL
? n%t t% print %ut th$ r$#ult# %6 it# @u$rA*
? In#t$,7& it )ill r$turn th$ r$#ult# ,# , #trin0 r$turn 8,lu$
? 6r%. curl_$+$c() in#t$,7 %6 th$ u#u,l tru$/6,l#$*
curl_#$t%pt ($ch& CURLOT_RETURNTR1NSFER& 3);
// EBECUTE 3#t RECUEST (FOR! LO"IN)
$#t%r$ = curl_$+$c ($ch);
// SET FILE TO 5O;NLO15
curl_#$t%pt($ch& CURLOT_URL&
'http(//)))*$+t$rn,l-#it$*c%./!$./$r#/5%)nl%,7#/1nnu,lR$p%rt*p76');
// EBECUTE :n7 RECUEST (FILE 5O;NLO15)
$c%nt$nt = curl_$+$c ($ch);
// CLOSE CURL
curl_cl%#$ ($ch);
?D
+hu Jun 22 8:06:26 /+4 2006 $ Reply $
;eed<ac#er
9ell done* % used this script to re.erse en,ineer dynamic daily emails on my website in
con<uction with <etable*=r, to a.oid ,ettin, spammed* +han)s5 ::
$4li&& 1ennett
9ed :ec 2 20:2;:;2 /+4 2007 $ Reply $
iGuest*denise
Great Stuff
Automatic 0o,in /sin, 4url
9ow, %'.e been throu,h so many e?amples recently tryin, to lo,in .ia curl and submit
data to a database but could not ,et it to wor) due to coo)ies etc but this wor)ed li)e a
charm5 % <ust wish %'d &ound your e?ample 6$7 hours a,o55 +han) you5
$reply by denise
Sun =ct 6 2:;>:7 /+4 2008 $ Reply $
harrison858
=MA5 +hat was e?actly what % was loo)in, &or, and it too) me &ore.er to &ind a script*
+han)s, now % will use it
9ed =ct 2> 8:;6:42 /+4 2008 $ Reply $
liod
+han) you brother*
%tDs a small script, but it .ery help me*
8ri =ct ; >:46:46 /+4 2008 $ Reply $
shadow&
A3A5 you.e answered a Juestion i couldnt be bothered to as)5
% needed to lo,in to a pa,e with a A@+ .ar to the pa,e i want, then be redirected to the
pa,e i want Enow lo,,ed inG and decrypt some te?t and i was ,ettin, stuc) at sendin,
#=S+ .ars but now it may be sol.ed5
+han)s5
!ice code too Aood use o& comments5
Sat !o. ;:04:; /+4 2008 $ Reply $
iGuest*=asir Ali Shah
"ow we set coo#ie$
Automatic 0o,in /sin, 4url
Replyin, to harrison868
Still not lo,in by usin, is script
$reply by !asir Ali Shah
8ri =ct ; 6:;:42 /+4 2008 $ Reply $
>G?
Username'(asswordAutomatic 0o,in /sin, 4url
3ow do % desi,nate a username and password to use in the Automatic 0o,in /sin, c/R0
scriptK
8ri Mar 27 2:46:24 /+4 200> $ Reply $
>G?+om Guilleaume
Great Code * +han#s,Automatic 0o,in /sin, 4url
+han)s &or the ,reat code it was e?actly what % needed to automate the creditin, on my
site &or those annoyin, a&&iliate networ)s that re&use to use postbac) /R0s5 %t couldn't
ha.e been more customi(ed to &it my needs5
Re,ards,+om Auilleaume
Sun Apr > >:6>:;; /+4 200> $ Reply $
>G?6ar#
Clear .&am/le 0f Curl!Automatic 0o,in /sin, 4url
+his was my &irst time attemptin, 4url and with your concept it made it easy to
understand* +han) you &or your post with the code*
$&eedbac) by Mar)
+hu Jun 4 ;:;;:00 /+4 200> $ Reply $
1e/l@ '
Comment
=ew
:iscussion '
+o/ic
Share '
<oo#mar#
.*6ail a ;riend (rint
(AG.S
2 !e?t N
Specially for you, (HIDE)
Search Results &or Lauto lo,in curl phpL Esearch time: 0*4>0 sec*G
1. Php Simple Login Tutorial Learn how to make a simple login!
2. Creating A Php Login System Using Mysql nee! help in "reating a
login system# what want is a login system
$. Php Login S"ript %emo&ing the login 'iel! on"e the user logs in
(. )*php *+ Sloppy Login S"ript Sloppy login s"ript# "ouse i use! , on
one string
-. Automati" Login Using Curl
.. Php/mysql Login/register Tutorial 'or login with !ata0ases.
1. Php 2 Curl Mo!ule
3. nno&ati&e Login System A new way to login to a we0site
4. Simple Login n 5isual 6asi" . user intera"tion e7ample trough login
programm
18. Can %eset The ! Auto n"rement* phpMya!min
Similar +o/icA "and@ Ba3ascri/t Code
Sni/s
modstudioindia
Some common thin,s to implement in our webpa,e .ery &reJuently are as &ollows*
3ow to implement all these % am ,oin, to tell you in this tutorial*
Add +o 8a.orite
Set As 3omepa,e
Ao +o +op =& #a,e
!o Ri,ht 4lic)
#rint #a,e
Addin, 4urrent :ate
Addin, 4urrent +ime
#op$/p #a,e 4rea ***more
9ed !o. ;0 :2;:4 /+4 2006 $ Reply $
Ciew Latest /osts
Gi9mo
II #ls show me where is my errors in this code :
HKphp
FF %!%+ 4/R0
Pch Q curlRinitEGS
FF S@+ /R0 8=R +3@ #=S+ 8=RM 0=A%!
curlRsetoptEPch, 4/R0=#+R/R0, 'http:FFwww*.n$(oom*comFlo,in*phpKdoQlo,in'GS
FF @!A10@ 3++# #=S+
curlRsetopt EPch, 4/R0=#+R#=S+, GS
FF S@+ #=S+ #ARAM@+@RS : 8=RM MA0 ***more
Sat Jun 2:0:6> /+4 20 $ Reply $
#ostin, +o An @?ternal Site 9ithout
/rl 4han,e need help E0G
EG :o Somebody 3a.e A +utorial
About*** 3ow +o 4reate A 8orumK how
to create a &orumK
Buzz me Upd

Latest +o/ics
9ordpress +heR:ateEG E0G
#hp 4alculator $ Simple but cool* E2G
9hat %s A +Rstrin,K $ #lease help5 %'m new at #3# #ro,rammin, E7G
4an Reset +he %d Auto %ncrementK $ phpMyadmin E24G
0oo)in, 8or Some #hp 4ode $ +ryin, to add some numbers in a MyS20 database
E0G
1est 9ay +o Start 0earnin, #hp E2G
9hy :o % 3a.e +o 8orce A Re&reshK EG
Joomla Ms 9ordpress E6G
Sortin, 1y +he :ays =& +he 9ee)* E0G
4ss !ot 9or)in, E4lean /rlG E6G
hey,+han)s &or script you wrote*%t wor)s &or some system*8or some system % recei.e
messa,e L=b<ect mo.ed to here*L*4an you su,,est me what could be the reason &or thisK$
reply by .ishal
Sat Sep > :6:67 /+4 200> $ Reply $
>G?sa/ta
didnAutomatic 0o,in /sin, 4url
hi, the 4/R0 script didn't word on n,in? http ser.er, anyone )now how to &i? this K the
n,in? return 404 response Enot &oundG
+han)s
$reply by sapta
Sat !o. 4 4:67:2 /+4 200> $ Reply $
>G?Ars
1egarding automatic login using curlAutomatic 0o,in /sin, 4url
3i there,
whether coo)ie &ile path inclusion is compulsory or not**K
+han)s,
Ars
Mon :ec 28 6:;:67 /+4 200> $ Reply $
>G?3i4a@
curl auto login with we2da3 ser3erAutomatic 0o,in /sin, 4url
3i, % would li)e to )now the possibilities to use the abo.e script &or 9@1:AM lo, in*
9ebda. will as) &or windows authentication* 4an we o.erride this usin, curl*
+han)s in ad.ance55
Mi<ay
+ue Mar 6 6:07:0 /+4 200 $ Reply $
4h2ala4i
3ey5
9here i need to insert the username and password
+ue May 8 6:2:46 /+4 200 $ Reply $
6r 737eoh
=MA5 +hat was e?actly what % was loo)in, &or, and it too) me &ore.er to &ind a script*
+han)s, now % will use it
II #ls show me where is my errors in this code :
C0:.
<?php
// INIT CURL
$ch = curl_init();
// SET URL FOR THE OST FOR! LO"IN
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*8n-E%%.*c%./l%0in*php?
7%=l%0in');
// EN12LE HTT OST
curl_#$t%pt ($ch& CURLOT_OST& 3);
// SET OST 1R1!ETERS ( FOR! 41LUES FOR E1CH FIEL5
curl_#$t%pt ($ch& CURLOT_OSTFIEL5S&
'8/_l%0in_u#$rn,.$=.$%.un#%c%l,98/_l%0in_p,##)%r7=t3FhG+');
// I!IT1TE CL1SSIC 2RO;SER'S 2EH14IOUR ( H1N5LE COO<IES
curl_#$t%pt ($ch& CURLOT_COO<IE=1R& 'c%%>i$*t+t');
? S$ttin0 CURLOT_RETURNTR1NSFER 8,ri,/l$ t% 3 )ill 6%rc$ cURL
? n%t t% print %ut th$ r$#ult# %6 it# @u$rA*
? In#t$,7& it )ill r$turn th$ r$#ult# ,# , #trin0 r$turn 8,lu$
? 6r%. curl_$+$c() in#t$,7 %6 th$ u#u,l tru$/6,l#$*
curl_#$t%pt ($ch& CURLOT_RETURNTR1NSFER& 3);
// EBECUTE 3#t RECUEST (FOR! LO"IN)
$#t%r$ = curl_$+$c ($ch);
// SET FILE TO 5O;NLO15
curl_#$t%pt($ch& CURLOT_URL&
'http(//)))*$+t$rn,l-#it$*c%./!$./$r#/5%)nl%,7#/1nnu,lR$p%rt*p76');
// EBECUTE :n7 RECUEST (FILE 5O;NLO15)
$c%nt$nt = curl_$+$c ($ch);
// CLOSE CURL
curl_cl%#$ ($ch);
?D
+hu Apr 7 0:6:6 /+4 20 $ Reply $
Gi9mo
II #ls show me where is my errors in this code :
C0:.
<?php
// INIT CURL
$ch = curl_init();
// SET URL FOR THE OST FOR! LO"IN
curl_#$t%pt($ch& CURLOT_URL& 'http(//)))*8n-E%%.*c%./l%0in*php?
7%=l%0in');
// EN12LE HTT OST
curl_#$t%pt ($ch& CURLOT_OST& 3);
// SET OST 1R1!ETERS ( FOR! 41LUES FOR E1CH FIEL5
curl_#$t%pt ($ch& CURLOT_OSTFIEL5S&
'8/_l%0in_u#$rn,.$=.$%.un#%c%l,98/_l%0in_p,##)%r7=t3FhG+');
// I!IT1TE CL1SSIC 2RO;SER'S 2EH14IOUR ( H1N5LE COO<IES
curl_#$t%pt ($ch& CURLOT_COO<IE=1R& 'c%%>i$*t+t');
? S$ttin0 CURLOT_RETURNTR1NSFER 8,ri,/l$ t% 3 )ill 6%rc$ cURL
? n%t t% print %ut th$ r$#ult# %6 it# @u$rA*
? In#t$,7& it )ill r$turn th$ r$#ult# ,# , #trin0 r$turn 8,lu$
? 6r%. curl_$+$c() in#t$,7 %6 th$ u#u,l tru$/6,l#$*
curl_#$t%pt ($ch& CURLOT_RETURNTR1NSFER& 3);
// EBECUTE 3#t RECUEST (FOR! LO"IN)
$#t%r$ = curl_$+$c ($ch);
// SET FILE TO DOWNLOAD
curl_setopt($ch, CURLOPT_URL,
http!//"""#e$ter%&l's(te#co)/*e)+ers/Do"%lo&,s/A%%u&lReport#p,-./
// EBECUTE :n7 RECUEST (FILE 5O;NLO15)
$c%nt$nt = curl_$+$c ($ch);
// CLOSE CURL
curl_cl%#$ ($ch);
?D

You might also like