rnsr
asked on
need web page content c#
I am using c# console application.
i used like this but failed to get dymanic data
1. string URL = "https://ecomexpress.in/tracking/?awb_field=852156111";
using (var client = new WebClient())
{
client.Headers["Content-Ty pe"] = "application/json; charset=UTF-8";
var json = client.UploadString(URL, JsonConvert.SerializeObjec t(new { awb_field = "852156111", Ubi = "", IrlVilationId = "", IsSecured = "" }));
}
2.
WebClient client = new WebClient();
client.Headers.Add("user-a gent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
Stream data = client.OpenRead(url);
i used like this but failed to get dymanic data
1. string URL = "https://ecomexpress.in/tracking/?awb_field=852156111";
using (var client = new WebClient())
{
client.Headers["Content-Ty
var json = client.UploadString(URL, JsonConvert.SerializeObjec
}
2.
WebClient client = new WebClient();
client.Headers.Add("user-a
Stream data = client.OpenRead(url);
you can also check like:
https://kateeye.ecomexpress.in:9247/api/v1/cust_dashboard/awb_web_search/852156111/?format=json
https://kateeye.ecomexpress.in:9247/api/v1/cust_dashboard/awb_web_search/852156111/?format=json
ASKER
Thank you sir. Can i integrate this url init into my project.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sir, is there any url for getting India post tracking in similar way.
ASKER
Great Help. Thanks.
it seems that your page is actually calling another api to get json string returned?
https://kateeye.ecomexpress.in:9247/api/v1/cust_dashboard/awb_web_search/852156111