Jump to content

phpbeast

New Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

phpbeast's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Holy crap , I found why I couldn't get cookie from the request: I was missing curl_close($handle); ... Silly mistake. Well, I shouldn't really bother to think of some legal issues I may have, because a company is behind this , which I work for, and the're representatives of the bigger company this website I'm trying to cURL belongs to. I will try to continue cURL'ing and if I'm out of luck - I will search for another solution. I Was thinking maybe Chrome/Firefox plugin could be the solution, but somehow didn't find information if it is possible to get data from server(localhost) and pass to it. Thanks a lot for your help. I would really love to send you some beer-bucks If you pm me with your paypal account info once I manage to reconfigure my own paypal.
  2. Thanks for your help, Grumpy Old Man, 1) I'm trying to send every header I'm sending to this webpage using my browser, but it just doesn't work. The hidden variable named "javax.faces.ViewState" regenerates it's value each time I make request , so In essence I need to call curl_exec 2 times with the same cURL resource , 1st time to get this value, 2nd - to send form data, right ? This seems like possible to achieve, even I don't really clearly understand what does javax.faces.ViewState means.. But... There is another catch: This webpage sends a COOKIE and I am unable to save it. Why ? I don't have a clue, maybe it's the same origin policy ? curl_setopt($login_curl, CURLOPT_COOKIEFILE, 'cookie.txt'); curl_setopt($login_curl, CURLOPT_COOKIEJAR, 'cookie.txt'); 3) I have legal access only to the administration panel, not the source code. p.s This website runs on SSL if if does really matter. I do have curl_setopt($login_curl, CURLOPT_SSL_VERIFYPEER, FALSE); line in my code
  3. How to bypass same origin policy Is there any existing browser plugin/another tool which can accomplish these tasks multiple times automatically: 1.Go to certain domain, 2. get data from my PHP script. 3. submit form, 4.get submission results 5. return results. 6.repeat 1-5 actios again. Why I don't use cURL ? Because There is same origin policy restriction and I cann't login to this website without using actual browser. p.s I'm not tryint to break this website or so, because I do have legal access to it.
×
×
  • 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.