This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions,
flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.
How to Create an XML Packet and Send using HTTP Post -------Rabbit bl2100 - timematcher - Oct 12 6:18:17 2009
hi all
can somebody guide me on how i may i construct an XML packet, put custom data in it and
send via POST request to a designated server.
I require guidance specifically for the specific funtions that i must use to accomplish
this.
Any help will be appreciated.
Regards
AM.
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Re: How to Create an XML Packet and Send using HTTP Post -------Rabbit bl2100 - Tom Collins - Oct 13 1:20:44 2009
On Oct 12, 2009, at 3:17 AM, timematcher wrote:
> can somebody guide me on how i may i construct an XML packet, put
> custom data in it and send via POST request to a designated server.
>
> I require guidance specifically for the specific funtions that i
> must use to accomplish this.
>
> Any help will be appreciated.
>
> Regards
>
> AM.
Take a look at the "http client.c" sample that uses the
http_client.lib library (first available in DC 10.54) to cover the
"POST a request to a web server" part.
You'll have to generate the XML on your own, or use some of the
helper functions to generate x-www-form-urlencoded data that a CGI
script can easily process (data looks like a form, with name/value
pairs).
-Tom

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )
Re: How to Create an XML Packet and Send using HTTP Post -------Rabbit bl2100 - mohamed - Oct 15 0:59:47 2009
Actually, i don't know the nature of your project but i would suggest if you have large
project to get raid of the http at all and all the needed java scripts and just create
your own utility that send your XML file to the rabbit and with simple parser for the XML
file you extract all the needed data from the XML.
by this way, your code size and data size will be much smaller and simple beside you have
a large GUI capability during building the utility which is restricted with the rabbit
web.
mfawzy
--- In r...@yahoogroups.com, Tom Collins
wrote:
>
> On Oct 12, 2009, at 3:17 AM, timematcher wrote:
> > can somebody guide me on how i may i construct an XML packet, put
> > custom data in it and send via POST request to a designated server.
> >
> > I require guidance specifically for the specific funtions that i
> > must use to accomplish this.
> >
> > Any help will be appreciated.
> >
> > Regards
> >
> > AM.
>
> Take a look at the "http client.c" sample that uses the
> http_client.lib library (first available in DC 10.54) to cover the
> "POST a request to a web server" part.
>
> You'll have to generate the XML on your own, or use some of the
> helper functions to generate x-www-form-urlencoded data that a CGI
> script can easily process (data looks like a form, with name/value
> pairs).
>
> -Tom
>
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )