Query string is not coming in fiddler? - 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.

Related

urlread pound sign (#) doesn't work

Trying to read in the pricing lists under pricing information tab:
urlread( ' http://www.cefconnect.com/Details/Summary.aspx?Ticker=KYE#pricing ' )
But in url '#pricing' doesn't help.
Any suggestions?
As already pointed out by Darin, it's no use adding #pricing to the URL. The web page uses client-side techniques to switch between tabs; not something that can be used by urlread.
Summary.aspx always returns all tabs together as one big page. CSS and JavaScript make it look like a collection of tabs, when opened in a web browser.
Use the developer toolbar of your web browser to inspect the web page. For example in Google Chrome, just right-click on the section you are interested in, and select 'inspect element'.
I don't know what you are going to do with the result of urlread, but you'll probably have to do some parsing to distill the information you need from the HTML clutter.
Please note Summary.aspx launches additional HTTP requests to retrieve additional data. Use the 'Network' tab of Chrome's developer toolbar to analyze that behavior. For example, the following request is made when you click 'GO' after adjusting the pricing history filter criteria.
http://www.cefconnect.com/Resources/TableData/?Type=PricingHistory&Cusip=48660P104&param0=1M&param1=06/06/2014
At first, this seems to complicate the whole matter, but it may actually be a great opportunity. You can call urlread with the URL above, and get some data in JSON format, which is far less cluttered than HTML. Adjust the parameters to get different data. I'm not sure what 48660P104 is; it might be an internal representation of KYE. You may want to use an initial HTTP request to Summary.aspx to retrieve that code; you'll notice the webpage is littered with URLs containing the same parameter Cusip.
The # character has a special meaning in an url. It represents the fragment identifier and the value following it is never sent to the server. Only client side javascript can access it. You will need to url encode the value if you want to send it to the server:
urlread( ' http://www.cefconnect.com/Details/Summary.aspx?Ticker=KYE%23pricing ' )
This also stands true for other special characters. You need to properly encode them.

How to retrieve page with special characters in page name

Trying to retrieve general page info using the Facebook graph API using an Jquery/Ajax call. This works flawlessly until I request a page containing special characters or dashes in it's name.
It seems like the special characters are ANSI encoded during the ajax request so the name is malformed and the page cannot be found. I can't find a way though to obviate this.
Example url: https://graph.facebook.com/Musée-de-la-Photographie-Charleroi?access_token=[my_access_token]
Can anybody help me out?
I think you should test different values in contentType parameter. It allows to set char encoding.
Take a look here:
http://api.jquery.com/jQuery.ajax/
It seems like the special characters are ANSI encoded during the ajax request so the name is malformed and the page cannot be found.
No, I don’t think that’s the problem.
As you can see from https://developers.facebook.com/tools/explorer?method=GET&path=18521449287, this page does not have a username set yet – and since it is not accessible via just www.facebook.com/Musée-de-la-Photographie-Charleroi, but only via www.facebook.com/pages/Musée-de-la-Photographie-Charleroi/18521449287 including the page id.
And accordingly, info about the page on the Graph API is only available via the page id as well.
Try using the page_id instead (in this case 131141113604635).
https://graph.facebook.com/131141113604635?access_token=[my_access_token]
You may get this id by opening the page on the browser and pressing Ctrl+U, Ctrl+F and searching for a 'page_id' value.

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.

Unable to get information using RSSFeed

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.

Show sent POST Values with Fiddler..How do i do that?

I make some requests to a site and i want to see, what kind of variables has been sent to the server..
May be its possible with fiddler but i can't figure it out, how to do it..
You can do this in Fiddler using the following steps.
Locate the request in fiddler that relates to the post - you should be able to see the URL you expect in the URL column.
Select that line and the detailed view will open. There is a WebForms tab (inside "Inspectors") that displays the POST data in a neat table. You can also see it in the Raw tab, but it isn't nicely formatted like the WebForms tab.
I have made a screenshot to help you:
POST data can be seen in the Inspectors -> Raw window which will display the whole request along with POST data and headers.
EDIT: Yep... The Inspectors -> WebForms dialog would be another way however I usually don't make much use of it... Don't know why.
It works for me. Just click on the request in the Web Sessions pane, Then click WebForms tab within the Inspectors tab on the right.
I ran into this same problem but the answers here did not help me.
WebForms does not display json posted data. I figured out for posted json data, you need to check the Textview tab.
To summarise:
Inspectors->WebForms: will show you classic html form posted values.
Inspectors->Textview: will show you json and text posted values.