Unable to get information using RSSFeed - iphone

To get the latest news from the client's website in the application I use RSSFeed.
when I use the URL
http://www.wiseadvice.co.nz/feed/rss/
information can be seen in the simulator
but when I use the URL
http://www.wiseadvice.co.nz/category/accounting-news-nz/
no information is available in the simulator.
Actually I want to arrange the information according to date and
in the first URL date is not available.
That's why I have to use another URL.
can anybody tell me why does this problem occur?

First URL returns valid XML file, second one returns whole html page.

Related

How can I include more characters in GET request URL

I want to submit many textareas contents of a form via GET request but it is not allowing me to as GET URL has length restriction. I don't want to use POST for this project as I am using the submitted URL to get contents of the form. So how can I increase the no. of characters in the GET URL?
Since, I didn't hear from anybody, I decided to switch to POST method excluding the feature that I wanted to perform with GET method. I think it is impossible to increase the limit of the number of characters supported by GET method.

Query string is not coming in fiddler?

In the fiddler i choose the inspectors>webforms to see the query string for the request. But instead it is coming blank. Do i need to enable anything in order to get that? Or any other way. Please help me out.
The session selected in your screenshot is a JavaScript file that is used by the page in question. Its URL does not contain a query string. Instead, you should select the Session that represents the web page that includes this JS file.

Send the user to a page along with a error message

I want to set up a login page in which from anywhere on the site I can send a user to it and it will display a custom message along with it. I could use a redirect and a msg query param but is this the best way to do it?
I'm working with node.js but I'm interested in a universal solution.
If you are going for easy, you can just have GET data in the URL. But, that doesn't look that nice, if you want a rather long message, plus, GET has size restrictions, where POST (virtually) hasn't.
For using post data you could use the solution of this: JavaScript post request like a form submit question, but that gives a rather messy source code (if you want a somewhat longer text).
You could keep them in a database, and only send the ID of the message to a PHP page, and get it from the database (that's what I would do, but that doesn't mean it's a good idea, just amateur here!)
You can use jQuery or simply plain javascript to extract your message from the url; the relevant question that listed links to detailed code: jquery get querystring from URL.
Then depending on how you want it displayed, apply the extracted string to your situation.

Format of External Links on Facebook

I have seen when you visit a profile on FB and click on link provided in
Contact Information --> Website
Facebook first take you to url format mentioned below
http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.nwaonfire.com%2F&h=BAQByDCFo
and then takes you to the site .
My question is why facebook does so, Iam asking because there is a place in my application where iam allowing users to enter website urls.
...and the reason for facebook using the mentioned link instead of linking directly to http://www.nwaonfire.com is that facebook is evil.
They want to know which links are popular, where their users are going and where the link came from.
I also see a format as http://www.facebook.com/l/BAQByDCFo/www.nwaonfire.com where the BAQByDCFo is a hash value.
URL encoding is done so that a second URL can be placed within the first's query string without breaking the original URL. For example, implying directory structure by using the "/" character or breaking out of name value pair by using "&". If you're going to be embedding a URL as a query string parameter, you must encode it first. How you do this will differ depending on the language you're working with but most web based frameworks have a native or library based function to easily do this.

iPhone web services NSURL

hi I am working on an application which takes data from a website and it displays it in table. I have been sucessful in making like an RSS feed (made like a twitter feed so I think it is an xmlparser) but now I want to get data from a website which doesn't have RSS feed in it..I just want to get the titles from the webpage.... any suggestion how do I do it without the XMLParser...
thanks
I think that the best way is to create on your server a php/asp/... page that will scrape data from the remote website.
Then, in that page, you can use some CURL to scrape data.
See here.
Next, you return the data in the format you want (XML/jSon/etc...).
Finally, you can easily call that script from your code.
On the other hand, pay attention to not scrape anything as skimming is generally illegal and Apple ca reject your app because of that.
There is a nice post talking about it.