cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: PHP - CURL - Custom authentication script

From: Michael Gawrychowski <mgawrych_at_excelmicro.com>
Date: Wed, 30 Mar 2011 15:57:21 -0400

Ok, I've tried many different charsets but it wasn't that. I'm still trying
to solve it but I noticed something that may be important. The POST string
pulled from LiveHeaders works perfectly when pasted into my code, however
when I replace the SUPER LONG variable (with the current one extracted from
HTML) I get a system permission error. When I replace the SUPER
LONG one (com.salesforce.visualforce.ViewState) + these two:
com.salesforce.visualforce.ViewStateMAC
and com.salesforce.visualforce.ViewStateCSRF it passes through but it says
that the the two following dropdowns are not selected:

<select id="j_id0:j_id6:info:j_id16:secGroup:group"
name="j_id0:j_id6:info:j_id16:secGroup:group" size="1"
onchange="A4J.AJAX.Submit('j_id0:j_id6',event,{'status':'j_id0:j_id6:assetStatus','similarityGroupingId':'j_id0:j_id6:info:j_id16:secGroup:j_id41','parameters':{'j_id0:j_id6:info:j_id16:secGroup:j_id41':'j_id0:j_id6:info:j_id16:secGroup:j_id41'}
} )"><option value="" selected="selected">- Select -</option><option
value="Tech Support">Tech Support</option><option value="Non-tech
Support/Operations">Non-tech Support/Operations</option></select>

and

<select id="j_id0:j_id6:info:j_id16:secFunction:function"
name="j_id0:j_id6:info:j_id16:secFunction:function" size="1"
onchange="A4J.AJAX.Submit('j_id0:j_id6',event,{'status':'j_id0:j_id6:assetStatus','similarityGroupingId':'j_id0:j_id6:info:j_id16:secFunction:j_id44','parameters':{'j_id0:j_id6:info:j_id16:secFunction:j_id44':'j_id0:j_id6:info:j_id16:secFunction:j_id44'}
} )" disabled="disabled"><option value="">- Select -</option></select>

Do you have any idea what is going on in here? It seems like these 3
variables are created for auth purposes but why they are not accepted when I
extract them from the code?

M.

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2011-03-30