how to send header | developer.brewmp.com how to send header | developer.brewmp.com

Developer

how to send header

Forums:

How can we send a http request with header and parameters.
inshort how to send headers along with url.
Can anyone help pl with the same.

Hi,
Send http request with IWEB_GetResponseV API.
IWEB_GetResponseV(pMe->m_pIWeb, &pMe->m_pIWebResp, &pMe->m_Callback, pMe->szURL, pMe->webOptBuf);
szURL --> contains the url and the header.
webOptBuf --> set the common web options.
Along with the weboptions set the post buffer data with ISOURCE API.
rtn = ISOURCEUTIL_SourceFromMemory(pMe->pisUtil, pMe->szPostBuf, len, NULL, NULL, &pMe->pisBody);
pMe->webOptBuf

.nId = WEBOPT_BODY;
pMe->webOptBuf[index++].pVal = pMe->pisBody;

Hi,
Send http request with IWEB_GetResponseV API.
IWEB_GetResponseV(pMe->m_pIWeb, &pMe->m_pIWebResp, &pMe->m_Callback, pMe->szURL, pMe->webOptBuf);
szURL --> contains the url and the header.
webOptBuf --> set the common web options.
Along with the weboptions set the post buffer data with ISOURCE API.
rtn = ISOURCEUTIL_SourceFromMemory(pMe->pisUtil, pMe->szPostBuf, len, NULL, NULL, &pMe->pisBody);
pMe->webOptBuf

.nId = WEBOPT_BODY;
pMe->webOptBuf[index++].pVal = pMe->pisBody;

Actually thts wht i need how to append it to URL ,
Should we append as we do to send parameters or there is ssomething different whn we send headers.

Actually thts wht i need how to append it to URL ,
Should we append as we do to send parameters or there is ssomething different whn we send headers.

Just append the URL and headers as send parameters...

Just append the URL and headers as send parameters...

Be sure to URL encode

Be sure to URL encode

Encode you mean to say encrypt, also append using % right

Encode you mean to say encrypt, also append using % right

Encode with IWEBUTIL_UrlEncode and send..

Encode with IWEBUTIL_UrlEncode and send..

if you can send me a code snippet for the same it will be gr8 help for me

if you can send me a code snippet for the same it will be gr8 help for me