473,320 Members | 1,990 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,320 software developers and data experts.

Call aspx file and receive an answer

Hi,
Does any one know how to call .net file aspx and pass him a parameters
, and get and answer ?
Regards,Rony

Jul 10 '06 #1
6 3071
rony_16 wrote:
Hi,
Does any one know how to call .net file aspx and pass him a parameters
, and get and answer ?
Regards,Rony
Hi ROny,

One can call ANY page (http) using CURL.
Read on here:
http://www.php.net/curl

It doesn't matter which language produced the page, as long as it is
reachable via a http request.

Regards,
Erwin Moller
Jul 10 '06 #2
"rony_16" <ro***********@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
Hi,
Does any one know how to call .net file aspx and pass him a parameters
, and get and answer ?
Regards,Rony
Surely it didn't occur to you to check the previous posts, but it just
happens the very same question was answered no longer than 12 hours ago when
'lucyachammond' asked exactly the same question under the topic 'Call an asp
script from php'. It doesn't hurt to check the message history.

--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Jul 10 '06 #3

Erwin Moller wrote:
rony_16 wrote:
Hi,
Does any one know how to call .net file aspx and pass him a parameters
, and get and answer ?
Regards,Rony

Hi ROny,

One can call ANY page (http) using CURL.
Read on here:
http://www.php.net/curl

It doesn't matter which language produced the page, as long as it is
reachable via a http request.

Regards,
Erwin Moller

Hi ,
Thank you for your guidance .
I did downloaded the curl file (curl.exe binary file) by the link in
the first post .
but how do i make it work .
i tried to copy the file to the php dir and even in the apache dir .
i searched in google all day ,but still i am getting an error
"Parse error: syntax error, unexpected T_VARIABLE in
z:\home\localhost\www\Test\post.php on line 51"

the code that i write is :
$XPost = "<XMLcontent>sameas above</XMLcontent>"
$url = "http://www.example.com";
$ch = curl_init(); // initialize curl handle
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 4); // times out after 4s
curl_setopt($ch, CURLOPT_POSTFIELDS, $XPost); // add POST fields
$result = curl_exec($ch); // run the whole process
echo $result; //contains response from server
i am .net programer , so do not know php , the reason i do that is to
integrate an .net site with php site .
Please help , Rony

Jul 11 '06 #4
"rony_16" <ro***********@gmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
"Parse error: syntax error, unexpected T_VARIABLE in
z:\home\localhost\www\Test\post.php on line 51"

the code that i write is :
$XPost = "<XMLcontent>sameas above</XMLcontent>"
Missing semi-colon ; at the end.
i am .net programer
It kinda shows. :)

(For those not familiar with asp, code lines aren't ended with a semicolon
or any other marker, just by a plain linebreak.)

--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Jul 11 '06 #5

Kimmo Laine wrote:
"rony_16" <ro***********@gmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
"Parse error: syntax error, unexpected T_VARIABLE in
z:\home\localhost\www\Test\post.php on line 51"

the code that i write is :
$XPost = "<XMLcontent>sameas above</XMLcontent>"

Missing semi-colon ; at the end.
i am .net programer

It kinda shows. :)

(For those not familiar with asp, code lines aren't ended with a semicolon
or any other marker, just by a plain linebreak.)

--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)


:) i know . my mistake .
now the error msg is :
Fatal error: Call to undefined function curl_init() in
k:\home\localhost\www\Test\post.php on line 52

Jul 11 '06 #6
"rony_16" <ro***********@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
:) i know . my mistake .
now the error msg is :
Fatal error: Call to undefined function curl_init() in
k:\home\localhost\www\Test\post.php on line 52

cURL not installed? Check the installation instructions at
http://php.net/manual/en/ref.curl.php
or:
http://zend.com/zend/tut/tutorial-thome3.php

--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Jul 11 '06 #7

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

Similar topics

6
by: Daniel Rimmelzwaan | last post by:
I want to send a biztalk document to an aspx page, and I need to see some sample code, because I just can't make it work. I have a port with transport type HTTP, pointing to my aspx page, something...
3
by: guy | last post by:
Hi, I need to make a call from my C# application to an ASP.NET web page and pass some parameters to it and receive back a return value. Anybody know what the class/function name is in C# to do...
3
by: melanieab | last post by:
Hi, I'm having trouble when I leave a tabpage to go on to the next. On Focus Leave, I take a snapshot of that tab. It usually turns out ok, but often, part of the next tabpage will appear in...
4
by: Trond Meistad | last post by:
I have a website where I run a simple asp.net web application. On Sunday night, requests to this webapplication started to time out. After much debuggeing with no result, I created a new...
2
by: Fred Geurtsen | last post by:
Hi, Anyone knows what get_aspx_ver.aspx does? I don't have this page in my webapplication, but I get it in a error message. Thx
10
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal...
1
by: Hugo Lefèvre | last post by:
Dear, I have made an aspx page and I want to start it via explorer to see how it looks in my browser. But when I click at it I receive the next error: The XML page cannot be displayed...
1
by: Gaetan | last post by:
I'm doing a prrof of concept to develop an application to run under WinPE. The application will use WinHTTP to send requests to an ASPX file running IIS 6.0 My problem is that I do not know how...
36
by: Don | last post by:
I wrote an app that alerts a user who attempts to open a file that the file is currently in use. It works fine except when the file is opened by Notepad. If a text file is opened, most computers...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.