asp.net to php
am 07.04.2008 20:36:53 von Patrice
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?
Re: asp.net to php
am 07.04.2008 21:10:50 von sanjay.uttam
On Apr 7, 2:36 pm, "hmm" wrote:
> 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...shouldn't be too hard, but focus on the above, first.
Re: asp.net to php
am 07.04.2008 21:10:50 von sanjay.uttam
On Apr 7, 2:36 pm, "hmm" wrote:
> 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...shouldn't be too hard, but focus on the above, first.
Re: asp.net to php
am 08.04.2008 16:46:21 von Patrice
I've not used the WebClient class or the HttpWebRequest class. I assume one
of these would be the tool to use for this?
"RhythmAddict" wrote in message
news:6bd8a037-7e33-4d3c-bbc5-05d42691bd05@a1g2000hsb.googleg roups.com...
> On Apr 7, 2:36 pm, "hmm" wrote:
>> 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...shouldn't be too hard, but focus on the above, first.
Re: asp.net to php
am 08.04.2008 16:47:51 von Patrice
Yes, I need to create the php page. I'm yet sure how to go about creating a
php page that automatically processes a file.
"RhythmAddict" wrote in message
news:6bd8a037-7e33-4d3c-bbc5-05d42691bd05@a1g2000hsb.googleg roups.com...
> On Apr 7, 2:36 pm, "hmm" wrote:
>> 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...shouldn't be too hard, but focus on the above, first.
Re: asp.net to php
am 11.04.2008 00:11:30 von sanjay.uttam
On Apr 8, 10:47 am, "hmm" wrote:
> Yes, I need to create the php page. I'm yet sure how to go about creating a
> php page that automatically processes a file.
>
> "RhythmAddict" wrote in message
>
> news:6bd8a037-7e33-4d3c-bbc5-05d42691bd05@a1g2000hsb.googleg roups.com...
>
> > On Apr 7, 2:36 pm, "hmm" wrote:
> >> 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...shouldn't be too hard, but focus on the above, first.
I don't really have any background in PHP, but this sounds do-able.
Work from the ASP.NET article to create an HTTP/S request
successfully. Then just work do create the PHP file that processes
(not sure how that's defined in this context) Then see if you can look
at things like this (http://bytes.com/forum/thread8657.html) that'll
help you understand the best/easiest way for you to run a checksum on
the files youre pushing from ASPNET to PHP.
Also, I'm not sure if this is an option but you can probably ignore
doing all of that if you can insert the file (or what you need from
the file) into a Binary column of a DB....then just have the PHP go
get it. Just seems easier to me but I'm not sure what constraints
youre working within here.
Cheers,
S
Re: asp.net to php
am 11.04.2008 02:11:11 von nc
On Apr 7, 11:36 am, "hmm" wrote:
>
> 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/library/system.net.httpwebr equest.aspx
http://msdn2.microsoft.com/en-us/library/system.net.httpwebr esponse.aspx
On the responding (PHP) side, it's not going to be any different from
handling a form submission.
Cheers,
NC
Re: asp.net to php
am 11.04.2008 02:11:11 von nc
On Apr 7, 11:36 am, "hmm" wrote:
>
> 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/library/system.net.httpwebr equest.aspx
http://msdn2.microsoft.com/en-us/library/system.net.httpwebr esponse.aspx
On the responding (PHP) side, it's not going to be any different from
handling a form submission.
Cheers,
NC
Re: asp.net to php
am 18.04.2008 14:56:51 von Patrice
Thanks.
"NC" wrote in message
news:0a85d5b9-2f8e-4c92-a371-df3995d75089@a5g2000prg.googleg roups.com...
> On Apr 7, 11:36 am, "hmm" wrote:
>>
>> 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/library/system.net.httpwebr equest.aspx
> http://msdn2.microsoft.com/en-us/library/system.net.httpwebr esponse.aspx
>
> On the responding (PHP) side, it's not going to be any different from
> handling a form submission.
>
> Cheers,
> NC
Re: asp.net to php
am 18.04.2008 14:56:51 von Patrice
Thanks.
"NC" wrote in message
news:0a85d5b9-2f8e-4c92-a371-df3995d75089@a5g2000prg.googleg roups.com...
> On Apr 7, 11:36 am, "hmm" wrote:
>>
>> 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/library/system.net.httpwebr equest.aspx
> http://msdn2.microsoft.com/en-us/library/system.net.httpwebr esponse.aspx
>
> On the responding (PHP) side, it's not going to be any different from
> handling a form submission.
>
> Cheers,
> NC