Jump to content

problem with curl options?


tidysi

Recommended Posts

I started a new topic since the last one was actually solved, but created a new challenge for me:

 

Essentially:

test.php

--------

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,"https://ukvpstest.protx.com/VSPSimulator/VSPFormGateway.asp");

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, "VPSProtocol=2.22");

curl_exec ($ch);

curl_close ($ch);

exit;

 

Now this works, the script at protx picks up on the VPSProtocol so I know I'm almost there

 

However, the browser still seems to be on the test.php page rather than protx's page

 

I know curl retrieves data from sites and then processes but all I need to do is to use curl to post the variables to that script,and then leave the script at protx to take care of the rest

 

Any ideas ?

 

Link to comment
https://forums.phpfreaks.com/topic/67122-problem-with-curl-options/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.