Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

ASP.net Response to a HTTP Get from an external source

  • 20-08-2010 11:09AM
    #1
    Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭


    Hi,

    I'm receiving a HTTP post with some variables from an external website. They are expecting a response with only two lines, and they need be to be exactly that.

    I'm am writing the response as Response.Write but there is extra HTML being rendered and I need to avoid this.

    How can I do this?

    Many thanks in advance :)


Comments

  • Registered Users, Registered Users 2 Posts: 80 ✭✭terry_s




  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭John_Mc


    The external website is reading my response. I don't think making a HTTP post to them will work?


  • Registered Users, Registered Users 2 Posts: 981 ✭✭✭fasty


    External site posts to a page you host. You read variable and do something then output them to the page. Is that right so far?

    Can you post some code and perhaps an example of what you want the response to be?


  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭John_Mc


    fasty wrote: »
    External site posts to a page you host. You read variable and do something then output them to the page. Is that right so far?

    Can you post some code and perhaps an example of what you want the response to be?

    Yeah that's exactly what I'm trying to do. It turns out the external website was making a post instead of a get. Once that was changed, it started working :)

    Thanks for you help


Advertisement