Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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?




Report this thread to moderator Post Follow-up to this message
Old Post
hmm
04-08-08 12:26 AM


Re: asp.net to php
On Apr 7, 2:36 pm, "hmm" <nob...@nowhere.com> 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 whi
ch
> 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  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.

Report this thread to moderator Post Follow-up to this message
Old Post
RhythmAddict
04-08-08 12:26 AM


Re: asp.net to php
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" <sanjay.uttam@gmail.com> wrote in message
news:6bd8a037-7e33-4d3c-bbc5-05d42691bd05@a1g2000hsb.googlegroups.com...
> On Apr 7, 2:36 pm, "hmm" <nob...@nowhere.com> wrote: 
>
> 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  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.



Report this thread to moderator Post Follow-up to this message
Old Post
hmm
04-09-08 12:24 AM


Re: asp.net to php
On Apr 7, 11:36 am, "hmm" <nob...@nowhere.com> 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/li...webrequest.aspx
http://msdn2.microsoft.com/en-us/li...ebresponse.aspx

On the responding (PHP) side, it's not going to be any different from
handling a form submission.

Cheers,
NC

Report this thread to moderator Post Follow-up to this message
Old Post
NC
04-11-08 03:41 AM


Re: asp.net to php
Thanks.

"NC" <nc@iname.com> wrote in message
news:0a85d5b9-2f8e-4c92-a371-df3995d75089@a5g2000prg.googlegroups.com...
> On Apr 7, 11:36 am, "hmm" <nob...@nowhere.com> wrote: 
>
> Why bother with the file?  Just send raw data in a POST request...
> 
>
> On the requesting (ASP.Net) side, you will need to use HttpWebRequest
> and HttpWebResponse classes:
>
> http://msdn2.microsoft.com/en-us/li...webrequest.aspx
> http://msdn2.microsoft.com/en-us/li...ebresponse.aspx
>
> On the responding (PHP) side, it's not going to be any different from
> handling a form submission.
>
> Cheers,
> NC



Report this thread to moderator Post Follow-up to this message
Old Post
hmm
04-18-08 01:32 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP .NET archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:33 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.