Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

asp.net to php

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hmm - 07 Apr 2008 19:36 GMT
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 - 07 Apr 2008 20:10 GMT
> 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
[quoted text clipped - 5 lines]
>
> 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.
hmm - 08 Apr 2008 15:46 GMT
I've not used the WebClient class or the HttpWebRequest class.  I assume one
of these would be the tool to use for this?

>> I want to create a process on asp.net that, by interaction on a .aspx
>> page a
[quoted text clipped - 18 lines]
> 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.
NC - 11 Apr 2008 01:11 GMT
> 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.httpwebrequest.aspx
http://msdn2.microsoft.com/en-us/library/system.net.httpwebresponse.aspx

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

Cheers,
NC
hmm - 18 Apr 2008 13:56 GMT
Thanks.

>> 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:
[quoted text clipped - 20 lines]
> Cheers,
> NC

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.