Gentee Programming Language > Documentation > Libraries Download documentation

http_get

The method sends a GET request to the specified URL and writes data it receives to the databuf buffer.
 
uint http_get(
      str   url,
      buf   databuf,
      uint   notify,
      uint   flag
)

Parameters

urlThe URL address data is received from.
databufThe buffer for getting data.
notifyThe function for getting notifications. It can be 0.
flagFlags.
$HTTPF_REDIRECTIf redirection is used, download from the new address.
$HTTPF_STRAdd 0 to databuf after data is received. Use this flag if databuf is a string.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Internet


 Copyright © 2004-2006 Gentee Inc. All rights reserved.