unable to get data after submitting asp.net form using curl - asp.net

I am trying to submit a asp form using curl request
the form is available on
http://www.fikeandfike.com/propertytax/Grundy/Inquiry.aspx
this form can only be accessed by clicking "Parcel Enquiry"
http://www.fikeandfike.com/propertytax/Grundy/MainMenu.aspx?c=32
I have written a curl script to access the for and submit the form but the output is not coming as expected.
Actually the post method is not doing anything.
I tried net modelling on firebug and found that a interim page redirects to the webpage on which data is displayed.
after executing the curl all I get is a blank screen.
is there any problem because of that interim page redirecting to final page after submit button is pressed. please help.

Related

external POST request to update on aspx page

I am working in .net webforms and am submitting something to an external web service via .ashx which then returns a POST request with parameters to my .aspx page. I am having trouble figuring out how to get that data back on my page.
I understand that Request.QueryString["parameterName"] should get anything sent as a querystring, but how can I then take that information and, say, put it in a label on the page in my browser.
Basically I want this: user is on .aspx page, clicks a button, processing happens externally and information from the POST request from the webservice is then displayed on the screen for the user on the same .aspx page.
I assume this involves and needs some ajax - I just am not quite comfortable enough with it to know how to do it and if what I am doing is right.
Any help would be much appreciated!
thank you in advance,
syd

Edit my website with cURL

I want to make my website automatic that it means to get data from other websites using cURL. I have a news portal : lajm-shqip.com. Can you help me with some specific advice how to do this ?
You could have a php file somewhere, that get the page you want using cUrl (see php man).
Then, on your website, make an ajax request on that php file whenever you need to get the content.
Just add what your ajax request gave you in a div (using jquery or the whatever).

Grid view row command in asp.net?

In web application, in asp.net i am using one grid view, in that i have one link button, in row command event i am binding the url to that link, when i am clicking on that it is logging out, it is coming to login page. In row command i am writing the code like this
Response.Redirect(s, false);
where s containt the url like abc/abc_approval/xyz.aspx. it is giving particularly that url only remaing urls redirecting to their destinations.
when it comes to login page the url like this
Login.aspx?ReturnUrl=%2fabc%2fabc_Approval%2fxyz.aspx
help me please.
This does not seem the problem of redirect, you may have authentication failed on abc/abc_approval/xyz.aspx or any error could cause the redirect to login page. In web.config check the customErrors tag, Login page might be the default for unhandled errors. Put debugger on the suspected page to see if any error occurs.

download file and redirect page in asp.net

I want to write a program where after button click page will be redirected and one pdf file will be download. I am writing the following code under the button click event. but it is showing the error.
Response.TransmitFile("Filename")
Response.Redirect("~/Redirect.aspx")
Response.End()
It is impossible, because file download will get HTTP status 200 (with file in response). Redirect is 301/302, but cannot contain file in response.
Moreover when modern browser receive a file it does not change the current URL.
If you really want to have such effect you have to create something on client side. For example you can use jquery file download which has events after download and on error. More on examples page

How to display posted XML data in ASP.Net

I am trying to setup a test page that will display an XML Post from a gateway but can not find any examples of how to do this. Every example I have seen has been posting information FROM a page or reading an XML FILE but nothing relating to dispalying a (I think its called) xml stream that is posted to a page?
The idea is this: User submits a form. Form is posted to gateway. Gateway responds with success/failure and error messages (in the form of xml) to my dev page. Dev page displays the XML.
Anyone have any suggestions?
if it's for development purpose, you could use the firebug plug-in for Firefox instead of having the "Dev page displays the XML"
http://getfirebug.com/

Resources