Hi All
While making a webrequest, I am passing a parameter through URL., as a query string (not as header ).
The url works well in the browser. But when trying to access the same thoru curl program, the parameter becomes null.
(Rest Webservice receives it as null ).
Pls suggest what can go wrong??
sample code :
let service-url:Url = {url web-url & "Products" & tick & ".aspx?OrderNo=" & OrderNo & ""}
{with-open-streams
in = {read-open {service-url.set-query "?format=xml&rows=5000"}}
do
let rs:TestRecordSet = {TestRecordSet Product-rf}
let p:SAXParser = {SAXParser}
{p.set-content-handler {RecordSetHandler rs, "Products" }}
let source:InputSource = {InputSource character-stream = in}
{with rs.batch-events? = true do
{p.parse source}}
{return rs}
Regards,
Sreenu
While making a webrequest, I am passing a parameter through URL., as a query string (not as header ).
The url works well in the browser. But when trying to access the same thoru curl program, the parameter becomes null.
(Rest Webservice receives it as null ).
Pls suggest what can go wrong??
sample code :
let service-url:Url = {url web-url & "Products" & tick & ".aspx?OrderNo=" & OrderNo & ""}
{with-open-streams
in = {read-open {service-url.set-query "?format=xml&rows=5000"}}
do
let rs:TestRecordSet = {TestRecordSet Product-rf}
let p:SAXParser = {SAXParser}
{p.set-content-handler {RecordSetHandler rs, "Products" }}
let source:InputSource = {InputSource character-stream = in}
{with rs.batch-events? = true do
{p.parse source}}
{return rs}
Regards,
Sreenu