473,796 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3095
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.goog legroups.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***@bhg byrzcv.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\localho st\www\Test\pos t.php on line 51"

the code that i write is :
$XPost = "<XMLcontent>sa meas above</XMLcontent>"
$url = "http://www.example.com ";
$ch = curl_init(); // initialize curl handle
curl_setopt($ch , CURLOPT_URL,$ur l); // set url to post to
curl_setopt($ch , CURLOPT_RETURNT RANSFER,1); // return into a variable
curl_setopt($ch , CURLOPT_TIMEOUT , 4); // times out after 4s
curl_setopt($ch , CURLOPT_POSTFIE LDS, $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******** *************@p 79g2000cwp.goog legroups.com...
"Parse error: syntax error, unexpected T_VARIABLE in
z:\home\localho st\www\Test\pos t.php on line 51"

the code that i write is :
$XPost = "<XMLcontent>sa meas 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***@bhg byrzcv.arg)
Jul 11 '06 #5

Kimmo Laine wrote:
"rony_16" <ro***********@ gmail.comwrote in message
news:11******** *************@p 79g2000cwp.goog legroups.com...
"Parse error: syntax error, unexpected T_VARIABLE in
z:\home\localho st\www\Test\pos t.php on line 51"

the code that i write is :
$XPost = "<XMLcontent>sa meas 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***@bhg byrzcv.arg)


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

Jul 11 '06 #6
"rony_16" <ro***********@ gmail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
:) i know . my mistake .
now the error msg is :
Fatal error: Call to undefined function curl_init() in
k:\home\localho st\www\Test\pos t.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***@bhg byrzcv.arg)
Jul 11 '06 #7

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

Similar topics

6
3147
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 like http://myserver/mypage.aspx. From there it gets blurry, because I just can't figure out how to do the rest. Does anybody have a sample page for me that I can take a look at? Just a simple one that takes whatever biztalk sends and saves it...
3
9410
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 this? I'm looking for something like: string xxx = "http://www.myweb.com/test.aspx?param1=aaa&param2=bbb"; int result = GetWebResult(xxx);
3
1437
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 this snapshot (an outline of a picturebox or textbox). Is there anything I can do about this? Thanks!!!! Mel
4
1890
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 webapplication with one aspx page that displays only a text. I uploaded this page and the dll, but requests to this page also times out. So my problem seems to be: If I request an aspx page, this request times out. The page gives no error mesage, it...
2
1505
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
24088
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 strInput As String) return (strInput & " test") End Sub
1
1752
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 Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
1
2291
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 to prevent IIS from returning the HTTP code of the ASPX page. The client side use something like this to initiate the request: set obj1 = createobject("WinHttp.WinHttpRequest.5.1") obj1.SetProxy HTTPREQUEST_PROXYSETTING_DIRECT obj1.Open "GET",...
36
5409
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 are configured to use Notepad to open the file by default and if they are configured to use Notepad by default I want it to remain that way rather than retrieve the text into my app or force the user to use another app to read the file. I'm...
0
10452
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10221
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10169
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.