Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


vaskovasilev last won the day on August 12 2017

vaskovasilev had the most liked content!

About vaskovasilev

  • Birthday 09/23/1984

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location

vaskovasilev's Achievements


Member (2/5)




Community Answers

  1. hello, thank you, looks interesting, but i cannot find the correct php code. also is there example with database info?
  2. Hello, I need some help regarding a part of project that i am creating. I have to create a workflow - application team send a request, an operator handles it, sends it for approval, another team approves it ... if it is not approved, they return the request to the applicant, if it is approved go to next level, then deployment in production.. and finished My idea is to enter the stages in an json object with an ID,then every time it passes through a given stage it is saved in the DB - this project with this ID with this user .. on that day. The question is if it turns several times through the same team .. how to draw it and make it beautifully. I have done it for now with nestable menu and arrows but that's kind of .. linear way, I want to do it graphical. thank you
  3. ok, i have done it with curl getting the content of the remote login page, loadHTML DOM to take the hidden input fields and form on my site with post action to the remote login page. dom is adding additional hidden fields to the post form that remote site is expecting. if somebody know better way, please tell.
  4. no, it can be done but not with curl. I thought that i will receive a clear answer, not blaming from beginning. I thought also that i am not the only one person in the world that don't like to write every time credentials when entering some website. But ok, this is even better. If i make it i can sell it.. if i don't make it, at least i will try. Every day everybody is learning something new by the way.. If i read the post and i have no idea about it, i will never give a reply..
  5. I am just using the provided functions for curl and i am asking if this can be done. Of course the server is the one that is login, php is server language it is not like js that can work as a client. Maybe this is the problem that in this case if there is a need to browse the website you need cookies on the client and php cannot do this. for api based access it is different.. The thing is that - when somebody ask an exact question, he/she is expecting for exact answer, not for lectures how the Internet works..
  6. ok, thanks. so with two words you are telling that php framework and whole documentation written for curl is wrong. then i am very happy that i found a bug i am not sure what is the connection for proxy here, when i want just to make for random site a way to fill the input fields user/pass automatically not to write them down - similar to Mozilla. So no one in the world can/(know how to) do this with PHP ? i don't believe.
  7. Hi, if you read carefully the first sentence, you will give the answers the website is X, i am not trying to make a function for A website but for websites. If you need really the target - you can use this forum. Login is working - how i understand, when you start the php script you will see that you are logged in, but curl is taking the info and visualizing it, i want to redirect to the website. idea is not only to login but to browse it.. when handling the second request, it does not show anything it is not redirecting. this is my goal to redirect with session.. not to use curl like a frame. this example is ok for API based access, but not for redirecting to the original website, that is why i am asking if somebody worked already on such kind of login.
  8. Hello, I am trying to make a curl function, which first authenticate to some website and then redirects to another link on the same website. first login is fine, it make cookies in a file, but after that it is not redirecting. If i make header location.. then it will not have the cookies. This is the code. <?php $url = "http://website/forum/login.php"; $file='cookies.txt'; $ch = curl_init(); $array = array( CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL =>$url, CURLOPT_REFERER=>$url, CURLOPT_FOLLOWLOCATION => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_POST =>1, CURLOPT_CONNECTTIMEOUT => 3, CURLOPT_TIMEOUT=>3, CURLOPT_COOKIEFILE=>$file, CURLOPT_COOKIEJAR=>$file, CURLOPT_POSTFIELDS=>"login=true&username=".$user."&password=".$pass.$webfields, CURLOPT_USERAGENT => 'demo user agent..' ); curl_setopt_array($ch, $array); $result1= curl_exec ($ch); $array[CURLOPT_URL] = "http://website/forum/viewtopic.php"; curl_setopt_array($ch, $array); $result2= curl_exec ($ch); curl_close ($ch); // echo $result1; echo $result2; can you help me to understand if this can be done and how thanks
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.