See http transactions in order to simulate programmatically - http

I am trying to login to a website and I need to see the HTTP transactions when I log in by browser then simulate procedure by my application in java using Apache Httpclient.
Are there any tools or software for this? If there are any, where can I download them?

If you're using Google Chrome as your browser, this is a feature in Chrome Developer Tools
Simple press F12 and switch to the Network tab. Here you can get headers and content of HTTP requests. You can also right click the HTTP request and get it as cURL (cmd or bash)
You can combine this with the Chrome extension Postman which can help you generate the code for a number of programming languages (including Java OK HTTP and Java Unirest).

Related

What is http request "HTTP/0.0"?

I make some Angular calls to an API and sometimes I see the request is being requested with protocol 0.0 - "HTTP/0.0" (ideally this would be "HTTP/1.1") by client and in response we see nothing but "HTTP/0.0 0"
In our case it turned out that Chrome was recording a blank HTTP version in its network log for requests that failed. The 'response' had a blank HTTP version too. Fiddler shows blank HTTP versions as HTTP/0.0.
You don't say where you saw your HTTP/0.0, but if it was in fiddler then even in the 'raw' view it's actually manipulating what you see.
You can double check this by downloading the .har file (right click in the network tab of the dev tools) and viewing the .har in a text editor rather than in Fiddler or some other viewer that might manipulate the results.

Making an HTTP request with a blank user agent

I'm troubleshooting an issue that I think may be related to request filtering. Specifically, it seems every connection to a site made with a blank user agent string is being shown a 403 error. I can generate other 403 errors on the server doing things like trying to browse a directory with no default document while directory browsing is turned off. I can also generate a 403 error by using a tool like Modify Headers for Google Chrome (Google Chrome extension) to set my user agent string to the Baidu spider string which I know has been blocked.
What I can't seem to do is generate a request with a BLANK user agent string to try that. The extensions I've looked at require something in that field. Is there a tool or method I can use to make a GET or POST request to a website with a blank user agent string?
I recommend trying a CLI tool like cURL or a UI tool like Postman. You can carefully craft each header, parameter and value that you place in your HTTP request and trace fully the end to end request-response result.
This example straight from the cURL docs on User Agents shows you how you can play around with setting the user agent via cli.
curl --user-agent "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" [URL]
In postman its just as easy, just tinker with the headers and params as needed. You can also click the "code" link on the right hand side and view as HTTP when you want to see the resulting request.
You can also use a heap of hther HTTP tools such as Paw and Insomnia, all of which are quite well suited to your task at hand.
One last tip - in your chrome debugging tools, you can right click the specific request from the network tab and copy it as cURL. You can then paste your cURL command and modify as needed. In Postman you can import a request and past from raw text and Postman will interpret the cURL command for you which is particularly handy.

web page http post check tools

im tasked to secure a web project. and the codes are messy. basically i need to focus on webpages that are using http GET and do proper validation or convert to http POST.
is there a free tool out there that runs on linux which search and generate a report?
A report of what http get requets are made by a web application?
Well, what about a simple network sniffer, like tcpdump or wireshark? lists you every request made. And you can process the dump using plain cli processing tools like grep and sed.
There is no tool in my knowledge which will generate a report like that.What you can do this , intercept the get & post requests using the tool called Fiddler ( windows only ) , It will list all the request & response which goes IN & OUT of a browser.
Install fiddler, start it.
Access the application
Go through the application and check the Fiddler interface.
It will list all the GET & POST data
You can generate report by examining this data.

Utility to view request/response headers during browsing session?

I'm wondering if there are any utilities out there that will display the request/response headers sent/received by my web browser during a browsing session. Does anyone know of anything useful?
I'm familiar with the Modify Headers add-on for Firefox 4 and the HTTP Client utility for MacOSX but neither of these do quite what i'm looking for.
I suspect Fiddler might help here - it captures all of the traffic, including headers, content, etc. It works on startup with IE or Chrome; Firefox needs to be configured to use it as a web proxy.

HTTP request debugging: Getting a complete log of all HTTP requests sent by Firefox

What is the easiest way to obtain a complete log of all HTTP/HTTPS requests issued by Firefox during a browser session?
The question is programming related insofar that obtaining a log of all HTTP/HTTPS requests issued is a great troubleshooting tool when developing webapps.
Wireshark is the most complete tool for logging all http activity
Fiddler tool might be easier to get started with, and comes with built in HTTPS-decryption
TamperData addon for Firebug is a very good addon for changing the requests ad hoc
Firefox works with Fiddler.
LiveHttpHeaders is a great add-on for Firefox. It traces all the requests along with header information and post data. You can save the log to a file if you want to.
Safari has a built in Activity monitor - Window->Activity list all http requests I believe.

Resources