asp.net to php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hmm

    #1

    asp.net to php

    I want to create a process on asp.net that, by interaction on a .aspx page a
    process is fired off that creates and sends a file via https: to a URL which
    is a php page.

    The php page will insure that the file is from an approved source, capture
    it, and process it. (Because the source is only one particular web site,
    perhaps it's safe to allow all from the source IP addr of the web site.)

    Ideas on how to best accomplish this?



  • RhythmAddict

    #2
    Re: asp.net to php

    On Apr 7, 2:36 pm, "hmm" <nob...@nowhere .comwrote:
    I want to create a process on asp.net that, by interaction on a .aspx page a
    process is fired off that creates and sends a file via https: to a URL which
    is a php page.
    >
    The php page will insure that the file is from an approved source, capture
    it, and process it. (Because the source is only one particular web site,
    perhaps it's safe to allow all from the source IP addr of the web site.)
    >
    Ideas on how to best accomplish this?
    Could be wrong here - but...I don't think ASP.NET is going to
    distinguish much between HTTP & HTTPS. You could probably work from
    this article (http://aspnet.4guysfromrolla.com/articles/102605-1.aspx)
    and focus on just creating the HTTP request if you haven't already.

    Also a question, I'm confused on one thing...is this PHP page built or
    do you have to build it? It's probably best to verify something other
    than just the source IP, at least some basic file/size or a
    checksum...shou ldn't be too hard, but focus on the above, first.

    Comment

    • hmm

      #3
      Re: asp.net to php

      Thanks.

      "NC" <nc@iname.comwr ote in message
      news:0a85d5b9-2f8e-4c92-a371-df3995d75089@a5 g2000prg.google groups.com...
      On Apr 7, 11:36 am, "hmm" <nob...@nowhere .comwrote:
      >>
      >I want to create a process on asp.net that, by interaction on a .aspx
      >page a process is fired off that creates and sends a file via https:
      >to a URL which is a php page.
      >
      Why bother with the file? Just send raw data in a POST request...
      >
      >The php page will insure that the file is from an approved source,
      >capture it, and process it. (Because the source is only one
      >particular web site, perhaps it's safe to allow all from the source
      >IP addr of the web site.)
      >>
      >Ideas on how to best accomplish this?
      >
      On the requesting (ASP.Net) side, you will need to use HttpWebRequest
      and HttpWebResponse classes:
      >
      http://msdn2.microsoft.com/en-us/lib...ebrequest.aspx
      http://msdn2.microsoft.com/en-us/lib...bresponse.aspx
      >
      On the responding (PHP) side, it's not going to be any different from
      handling a form submission.
      >
      Cheers,
      NC

      Comment

      Working...