Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 01:44 AM
Jim
Guest
 
Posts: n/a
Default Compressing GET

I'm using a GPRS modem to upload data from a serial device to a web
server. I've successfully opened an IP socket to do an HTTP GET etc.

Due to the GPRS data charges I need to send as LITTLE data as possible
when uploading.

Here is an example the ASCII characters I will send through the socket:


======
GET /leave.aspx?d=123SADF2K253K345*L45345ERTS6ETC HTTP/1.1
Host: www.mysite.com
User-Agent: Mozilla/4.0
======

Is this the minimal communication using a web server?
Do I need all 3 lines?
Any ideas for shrinking this data?

Many thanks,

Jim.

  #2  
Old July 24th, 2005, 01:55 AM
Tim
Guest
 
Posts: n/a
Default Re: Compressing GET

On Sat, 23 Jul 2005 16:01:51 -0700, Jim wrote:
[color=blue]
> GET /leave.aspx?d=123SADF2K253K345*L45345ERTS6ETC HTTP/1.1 Host:www.mysite.com
> User-Agent: Mozilla/4.0
>
> Is this the minimal communication using a web server? Do I need all 3
> lines?[/color]

Requests don't *need* the user-agent information, but many stupid websites
do. You *do* need the hostname and resource request in the GET command,
though.

I'd imagine you'd have more overhead with networking protocols
(handshaking, etc., on data as it passes through) than the request.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles