To Get the PNR Status by web Scraping Method Steps to Execute the Function Step 1 : Add the below method in your Form and Pass the PNR Number arguement public string GetPNRStatus( string sPNR) { string URI = "http://www.indianrail.gov.in/cgi_bin/inet_pnrstat_cgi.cgi" ; string Parameters = Uri .EscapeUriString( "lccp_pnrno1=" +sPNR+ "&submitpnr=Get Status" ); System.Net. HttpWebRequest req = ( HttpWebRequest )System.Net. WebRequest .Create(URI); //HTTP POST Headers req.ContentType = "application/x-www-form-urlencoded" ; req.Host = "www.indianrail.gov.in" ; //You can use your own user-agent. req.UserAgent = "Mozilla/5.0 (compatible; MSIE 7.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0) DELL;Venue Pro" ; req.Headers.Add( HttpRequestHeader .AcceptLanguage, "en-us,en;q=0.5" ); req.Headers.Add( HttpRequestHeader .AcceptCharset, "ISO-8859-1,utf-8;q=...
ASP.NET || Javascript || Dataobject || Code Solutions Free Open Source code for Developers
This is a topic which is near to my heart.
ReplyDelete.. Thank you! Exactly where are your contact details though?
Look into my web blog: joyofdecor.blogspot.co.uk
An outstanding share! I have just forwarded this onto a co-worker who had been conducting a little research on this.
ReplyDeleteAnd he in fact bought me breakfast simply because I stumbled
upon it for him... lol. So let me reword this.
... Thank YOU for the meal!! But yeah, thanx for spending the time to discuss this topic
here on your blog.
My website ... get followers
I believe that is among the so much significant info for me.
ReplyDeleteAnd i'm glad studying your article. But wanna remark on few common things, The site style is wonderful, the articles is really nice : D. Just right process, cheers
Review my web blog zulutrade
Do you mind if I quote a couple of your articles as long as I provide
ReplyDeletecredit and sources back to your website? My blog is in the very same niche as
yours and my users would really benefit from
a lot of the information you provide here. Please let me know if this okay with you.
Thanks a lot!
My web-site zulutrade
Also see my webpage: zulutrade