473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

asp.net to php

hmm
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?

Apr 7 '08 #1
4 1623
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...shouldn't be too hard, but focus on the above, first.
Apr 7 '08 #2
hmm
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" <sa**********@gmail.comwrote in message
news:6b**********************************@a1g2000h sb.googlegroups.com...
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...shouldn't be too hard, but focus on the above, first.

Apr 8 '08 #3
On Apr 8, 10:47 am, "hmm" <nob...@nowhere.comwrote:
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" <sanjay.ut...@gmail.comwrote in message

news:6b**********************************@a1g2000h sb.googlegroups.com...
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...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
Apr 10 '08 #4
hmm
Thanks.

"NC" <nc@iname.comwrote in message
news:0a**********************************@a5g2000p rg.googlegroups.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

Jun 2 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.