+ 2

Unable to link two curl with each other

I have two curl in my code. I want them to work with each other. first curl is in php and second curl is inside a <script> area. first curl do login and then second curl extract data available after login. can anyone please tell me how can I do it???? here is the file..... https://code.sololearn.com/WGUfWIwLSgxx/?ref=app

11th Apr 2019, 7:42 PM
Payments Magnus
Payments Magnus - avatar
26 Answers
+ 11
Whan i click on link it open page to download sololearn app.
13th Apr 2019, 2:02 PM
PanicS
PanicS - avatar
+ 1
I think I understand now... In theory, PHP must wait to answer from server that login operation was successfully perform. After that, U can use Script to grab content.
13th Apr 2019, 2:21 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
Payments Magnus just read a Google API focumentation for that.
13th Apr 2019, 2:22 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
All right Payments Magnus . Just use script to grab local storage and represent it in XML or HTML.
13th Apr 2019, 2:24 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
If u use cell phone, it was Android function. In other case (if u work at PC) it's much more simpler.
13th Apr 2019, 2:26 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
Just use local host to grab local storage (in your PC).
13th Apr 2019, 2:27 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
Yes. Anyway, u must use local storage.
13th Apr 2019, 2:28 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
I watched your code and I decided to write my own code for that. Just wait for couple hours...
13th Apr 2019, 2:41 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
Anyway, you made many mistakes in your HTML/JS.
13th Apr 2019, 2:44 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
Thank you for that Payments Magnus 😀👍🏻
13th Apr 2019, 2:45 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
I know.....I am not good enough in coding.....I just use internet examples to make it....
13th Apr 2019, 2:45 PM
Payments Magnus
Payments Magnus - avatar
+ 1
👍🏻 Good to go 👍🏻
13th Apr 2019, 2:46 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
Yea. I know that...😎
13th Apr 2019, 2:47 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
13th Apr 2019, 2:47 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
0
I agree with Sanja Panic but I think that questioni was: "how can I made two links are works in different address - one from url and second from script. Am I right?
13th Apr 2019, 2:18 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
0
I am doing web scraping through this script. one has to perform login function and save that session through cookies and second one has to use these cookies and perform fetch HTML page function.
13th Apr 2019, 2:20 PM
Payments Magnus
Payments Magnus - avatar
0
yes .....you are right
13th Apr 2019, 2:22 PM
Payments Magnus
Payments Magnus - avatar
0
after login, I just want to grab that data which is not public version
13th Apr 2019, 2:22 PM
Payments Magnus
Payments Magnus - avatar
0
it was not helpful at all....
13th Apr 2019, 2:24 PM
Payments Magnus
Payments Magnus - avatar
0
can you please help me in doing this....I am like a beginner...I tried it on my own.. but got nothing from it.....
13th Apr 2019, 2:25 PM
Payments Magnus
Payments Magnus - avatar