Re: HttpWebRequest POST no longer working to Canada Post website
- From: leeedw@xxxxxxxxxxx
- Date: 28 Nov 2006 09:04:16 -0800
Anyone?
leeedw@xxxxxxxxxxx wrote:
Hi there,
We have an application that posts data to the canadapost.ca website to
retrieve postal codes. This was working for quite some time until this
week when Canada Post changed their website. Now it no longer works.
Here is the code snippet:
Const CANADA_POST_URL As String =
"http://www.canadapost.ca/tools/pcl/bin/cp_search_response-e.asp"
' Create the web request.
objWebRequest =
CType(System.Net.WebRequest.Create(CANADA_POST_URL),
System.Net.HttpWebRequest)
objWebRequest.Method = "POST"
objWebRequest.ContentType =
"application/x-www-form-urlencoded"
objWebRequest.ContentLength = aPostData.Length
' Write the post data.
objStream = objWebRequest.GetRequestStream()
objStream.Write(aPostData, 0, aPostData.Length)
objStream.Close()
Anyone know how I can post to their website now?
Thanks!
.
- Prev by Date: Re: Help - Timing Logic
- Next by Date: Re: Help - Timing Logic
- Previous by thread: Adding Dropdownlist to GridView
- Next by thread: Re: ir on serial port vb.net 2005
- Index(es):
Relevant Pages
|