# HTTPService question (non-Flex)

**URL:** <https://forum.kirupa.com/t/httpservice-question-non-flex/290254>\
**Category:** flash\
**Created:** [June 11, 2009, 7:58pm UTC](https://forum.kirupa.com/t/httpservice-question-non-flex/290254 "2009-06-11T19:58:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)\
**Post date:** [June 11, 2009, 7:58pm UTC](https://forum.kirupa.com/t/httpservice-question-non-flex/290254/1 "2009-06-11T19:58:47Z")

</div>

I had it suggested that I use the HTTPService() method to post a variable value to a SQL Server database. The suggestion came from someone with some past experience in Flash but nothing specifically related to posting variables to a database. I’m a noob in this too so we’re the blind leading the blind.

This person sent me the following code snippet that he found in a Flex forum (and changed a bit), with a suggestion that maybe it will work with a bit of massaging.

```php
private function start():void { 
   service = new HTTPService(); 
   service.url = "http://webServer.aspx"; 
   service.method = "POST"; 
   service.resultFormat = "object"; 

   var params:Object = new Object(); 
   params.learnerName= "myVar value"; 
   service.send(params); 
}

```

My biggest problem is that I’m using Flash instead of Flex. What is the Flash (non-Flex) equivalent of HTTPService() method in the following code snippet? Or am I even on the right track?
