Grab a copy of Charles (http://www.charlesproxy.com). This will show
you exactly what is being sent to your server.


--- In flexcoders@yahoogroups.com, "wkolcz" <[EMAIL PROTECTED]> wrote:
>
> I am just trying to send 4 parameters over to a CFC or CFM page to
insert into the database and both WebService and HTTPRequest are
giving me fits. 
> 
> Ok here is the scenerio:
> When the user watches a video, it starts a timer, when the user
either exits the page or clicks the 'stop' button it triggers a
function that sends out 3 pieces of info: what video, how long, and
whether they clicked stop or left. I am packaging that information
into an Object and sending it to a .cfm page with a query on it, ready
to insert.
> 
> What exactly is my .cfm page 'seeing' sent to it? Are they form.,
url., or just the stuct name?
> 
> Here is my AS code:
> trackInfo.duration =  myTimer.currentCount;
> trackInfo.action = "Video Stopped";    
> trackInfo.source = source;
> var service:HTTPService = new HTTPService();
> service.url =
"https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";;
> service.method = "POST";
> service.addEventListener(ResultEvent.RESULT, countHandler);
> service.addEventListener(FaultEvent.FAULT, alertFault);
> service.send(trackInfo);
> 
> How should I constuct the query on the tracker.cfm page? Something like:
> 
>         <cfquery name="countIt" datasource="#request.dsn#">
>             Insert Into tracker (clickCount, duration, action,
videoFile, datePlayed)
>                 VALUES(1, #trackInfo.duration#,
'#trackInfo.action#', '#trackInfo.source#', #Now()#)
>         </cfquery>
>


Reply via email to