GZip?

Discussion in 'Code Snippets and Tutorials' started by xZel, Jul 25, 2007.

  1. xZel

    xZel Level I

    Joined:
    Jul 25, 2007
    Messages:
    85
    Likes Received:
    5
    Hey can anyone tell me what exactly GZip is what what it does? I kinda know it is an encryption buy not really sure why you would want to use it exactly for a neopets program...
     
  2. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    Well, GnuZip is a free compression method mostly used on the internet. If the browser/wrapper's header contains "Accept-encoding: gzip, deflate", the page requested will be received in a compressed format, so faster than a uncompressed page. Neopets programs such as AutoBuyers are based on speed, so gZip is one of the most importants features needed in an AutoBuyer. :yup:
     
  3. xZel

    xZel Level I

    Joined:
    Jul 25, 2007
    Messages:
    85
    Likes Received:
    5
    I kinda understood that part but I have another question. If you have a wrapper that supports GZip how exactly do you use it? Is it built in to the Get and Post commands of the wrapper or do you have to call something else?
     
  4. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    it depends on how the wrapper was coded. There might be a boolean you need to set to true to enable it.. or it might be all automatic.
    can you post your wrapper here? and are you using vb6 or vb.net?
     
  5. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    You obivously have to set the UseGzip setting to True, but yes, it will do it automatically. ;) (you're using RipperWrapper or NiteWrapper, right?)
     
  6. xZel

    xZel Level I

    Joined:
    Jul 25, 2007
    Messages:
    85
    Likes Received:
    5
    Actually i have been using gluraks... but I do have both of the others. Not use if gluraks has Gzip i was just kinda wondering how to use it exactly.