Re: HttpWebRequest POST no longer working to Canada Post website



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!

.



Relevant Pages

  • HttpWebRequest POST no longer working to Canada Post website
    ... We have an application that posts data to the canadapost.ca website to ... retrieve postal codes. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Hats Off !
    ... I wanted to include vertical flyouts into my website to ... >> to write the codes, ... kind of navigation instead. ... >> phrase is clicked. ...
    (microsoft.public.frontpage.client)
  • Re: Hats Off !
    ... > FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... I wanted to include vertical flyouts into my website to improve navigation. ... I simply cannot grasp the codes the past few days and may ... > phrase is clicked. ...
    (microsoft.public.frontpage.client)
  • Re: You all know I like the El Cortez, however...
    ... I always call to book my comped rooms because their website ... their online reservation system seems to ignore it. ... They finally have it working now where it will accept promotion codes. ... unknown reason the El Cortez website refuses to acknowledge. ...
    (alt.vacation.las-vegas)
  • Re: Search Engine Visibility
    ... Geoffrey Chaucer said...I don't where to put the meta tags and the codes that ... www.vanusa.org a Publisher 2000 website ... website I am supposed to place "tags" & codes in the website prior to ...
    (microsoft.public.publisher.webdesign)