Jump to content

spears47

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

spears47's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I guess i mean. What is wrong with this? i havent worked much cURL. i need it to match the image above all the variables are stated in the other parts of the code $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://testunst0p.com/index_user.php"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array ( "Host: $sip", "Origin: $origin", "User-Agent: $ua", "Accept: $accept", "Referer: $referer", "Accept-Language: $lang", "Accept-Encoding: $encoding", "Pragma: $pragma", "Connection: $connection", "Content-Length: $length", "Content-Type: $type" )); $data = array( 'aut' => "$aut", 'action' => '00101', 'value1' => 'steve', 'value2' => 'steve22', 'value3' => 'steve22' ); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $output = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch);
  2. What setopt variables would i need to set with this request? Thanks
  3. this doesn't work. inside the url on the info page is a unique code to each member so you have to login with the form and then i want the url with the code
  4. i want it as a variable to echo on the starting php
  5. Okay thanks. Here is the starting point <html> <form action='login_user.php' method='post'> <input type="hidden" name="action" value="001" /> <input type="hidden" name="serverid" value="" /> USERNAME<input type='text' name='value1' size='20' maxlength='20'/> PASSWORD<input type="password" name="value2" size="20" maxlength="32"/> <input type="submit" value="login" name="login"/> </form> </html> From there it goes to login_user.php with the post. login_user.php then redirects to the account info page What i want is the url from the account info page. is that possible?
  6. Hello, I would appreciate if somebody could help me solve my problem I have a form that posts to a php. what i want to do is from that form not get directed to the php but simply grab the url of where it goes. is this possible? for example I hit submit on the form it POSTs to target.php where target.php then sends me to end.php is there a way i can just grab the url from end.php without getting redirected?
×
×
  • 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.