Search Webmaster Help and Solution

need help in CURL

hey guys,
I am trying to submit a form with curl but it doesnt work. i dont even get the source code.
i am using these curl opts:
PHP Code: curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
the url i try to access is redirecting me immediately to another page where the form is.
i mean i try to access https://example.com/page?id=235223
and it automatically redirects me to :https://example.com/page_2?id=23252

i dont know how it redirect me, by js, meta tag, header or whatever.
it also uses a https protocol.
can someone tell me what do i need to do to make it work?
(i tried adding a FOLLOW_LOCATION in curl and it didnt work)
if you need anymore details / better explanation just ask.
thanks! hey guys,
I am trying to submit a form with curl but it doesnt work. i dont even get the source code.
i am using these curl opts:
PHP Code: curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
the url i try to access is redirecting me immediately to another page where the form is.
i mean i try to access https://example.com/page?id=235223
and it automatically redirects me to :https://example.com/page_2?id=23252

i dont know how it redirect me, by js, meta tag, header or whatever.
it also uses a https protocol.
can someone tell me what do i need to do to make it work?
(i tried adding a FOLLOW_LOCATION in curl and it didnt work)
if you need anymore details / better explanation just ask.
thanks!

View Complete Thread with Replies

Related Items

Query failed: connection to localhost:3354 failed (errno=111, msg=Connection refused).