Proxy

Proxy is a computer server, which can be your local machine too, which acts as a hub through which all the requests made by your computer can be captured since all the requests are sent to the actual server via the proxy.

Proxy is useful when we have to analyze the traffic on a website, or check the bandwidth, or check, capture and analyze all the requests made to the server. A proxy can also be set in a different server and can be used to track data packets and requests sent and received by different computers on the network.

Proxy in Postman

Like any other remote server, the POSTMAN can also be used as a proxy server. The requests sent or recieved to or from the server can be captured using the POSTMAN software. To use POSTMAN as proxy server do the following steps:

Install A web Browser(Mozilla firefox is a good option)

Vsit the link to download Latest Version of Mizilla Firefox: https://www.mozilla.org/en-US/firefox/new/

Then click the download button and the Mozilla Installer will be download automatically within some seconds.

postman-firefox-download

Click into the installer, and then start installing the software.

postman-firefox-installer

The installation page will look like this.

postman-firefox-installing

Once Mozilla Firefox is installed in your computer, you are ready to go.

Open the Mozilla Firefox

A desktop icon must have been created, just click into the icon or go to the start menu to start the Mozilla Firefox. Now paste this link into the URL search bar: http://newtours.demoaut.com The page should look like this:

postman-mercury-page

Now navigate into the REGISTER link at the top header on the same interface and create your account after providing the minimal credentials.

postman-mercury-register

Once you click into the REGISTER link, you will be asked to enter the Credentials for creating your personal acount in the website.

postman-mercury-create-account

After enterring all the credentials either you will be taken directly to your acount or you may be asked to log in separately to sign in into your account.

Once you sign-in the Mercury Page will open and several options will be dislayed on the left side menu.

postman-mercury-left-menu

Inspect Element

The next step is to open the Inspect Element Option in your web browser. Just Right click anywhere on the same web-page and select Inspect Element.

postman-firefox-inspect-element

Once you open the Inspect Element option, a widow will open up below the browser page with several tabs and options. Navigate into the Network tab.

postman-firefox-inspect-element-network-option

Then in the same Webpage, select Cruise from the left menu and you will see the request made into the sever. All the requests will be displayed under the Network Tab.

postman-mercury-requests

Now, you are able to see the request URLs, along with the method and all the details. But our aim is to set POSTMAN as a proxy server let POSTMAN capture all the request that are sent into the server.

Configure POSTMAN for proxy

Simply, open the POSTMAN software and select an empty or any request. To set a proxy in POSTMAN, click proxy button in POSTMAN.

postman-proxy-button

Once you click into the proxy button, you be asked to select bewteen Proxy and Interceptor. Select the Proxy.

Then enter the proxy port. I have choosen 7070(arbitrarily, as 7070 is usually not used by other programs of the computer). You can choose as per your choice, just make sure that the same port number is not used by your OS. And in the Save Request to, select History.

postman-proxy-settings

Note that the Capture Requests should be on, to start capturing requests.
Configuring Proxy in the Brower

We shall configure the proxy in our Mozilla Firefox Browser. Click into the three line button on the top right corner of the Mozilla Firefox Page:

postman-firefox-three-line-button

Then go to options.

postman-firefox-options

Now, once you open the Options, scroll down to find Network Settings. Beside that click into the Settings link to set the network parameters.

postman-firefox-network-settings

Click into the Settings. Then, Select the Manual proxy configuration. In the HTTP Proxy, enter localhost. Set all the Port Numbers into: 7070.(we entered 7070 because, in the POSTMAN proxy we set the same PORT number.)

Port number should be same in both the places. That is, in the POSTMAN proxy as well as in the Browser Proxy.

Also select the radio button: SOCKSv5.

postman-firefox-proxy-settings

Then click on OK, and your settings is saved.

postman-proxy-ok-button

Now, go back to the POSTMAN page, where you save saved your proxy. And side by side just navigate into any link in the Mercury Website.

Or, you can click into any link on the website at first and then go to the POSTMAN software. Go to the History Section of the POSTMAN and you should be able to see all the request made to the server by your computer through the website.

postman-proxy-history

Viewing the Response in POSTMAN

You can also view the particular response sent from the server into your computer through the Website. Just copy the URL from the search bar for the website request and paste in into the POSTMAN's URL bar and set the method type as GET.

Copy the URL:

postman-mercury-url-copy

Now paste it into the POSTMAN's Request URL bar:

postman-request-url-bar

Then click the Send button in POSTMAN.

Response after few seconds :

<html>

<head>
	<title>Cruises: Mercury Tours</title>
	<script language="JavaScript">
		function changeStyle(obj, new_style) {
obj.className = new_style
}
	</script>
	<style type="text/css">
		.menu {
			BACKGROUND-COLOR: white;
			BORDER-BOTTOM: COLOR: menutext;
			CURSOR: default;
			FONT-FAMILY: MS Sans Serif;
			FONT-SIZE: 10pt;
			LINE-HEIGHT: 100%;
			POSITION: absolute;
			VISIBILITY: hidden
		}

		.visibleMenu {
			BORDER-BOTTOM: COLOR: menutext;
			CURSOR: default;
			FONT-FAMILY: MS Sans Serif;
			FONT-SIZE: 10pt;
			LINE-HEIGHT: 100%;
			POSITION: absolute;
			VISIBILITY: visible
		}

		.menuItem {
			POSITION: relative;
			COLOR: menutext;
			TEXT-DECORATION: none
		}

		.menuItemOver {
			POSITION: relative;
			COLOR: highlighttext;
			TEXT-DECORATION: none
		}

		.menuItemOver A {
			POSITION: relative;
			COLOR: highlighttext;
			CURSOR: default;
			TEXT-DECORATION: none
		}

		.menuItem A {
			POSITION: relative;
			COLOR: menutext;
			CURSOR: default;
			TEXT-DECORATION: none
		}

		.more {
			FONT-FAMILY: WebDings;
			POSITION: relative;
			TEXT-ALIGN: right;
			Z-INDEX: 100
		}

		.mouseOut {
			BACKGROUND: orange;
			FONT-Weight: bold;
			FONT-FAMILY: Helvetica;
			FONT-SIZE: 8pt;
			align="center"
		}

		.mouseOver {
			BACKGROUND: "#FFC455";
			FONT-Weight: bold;
			FONT-FAMILY: Helvetica;
			FONT-SIZE: 8pt;
			align="center"
		}

		.style2 {
			font-size: 14px
		}

		.style6 {
			font-size: 16px;
			font-family: Arial, Helvetica, sans-serif;
			font-weight: bold;
		}

		.style9 {
			font-family: Arial, Helvetica, sans-serif;
			font-weight: bold;
		}
	</style>
</head>

<body>
	<div>
		<table border="0" height="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td valign="top" bgcolor="#003366">
					<table border="0" cellpadding="0" cellspacing="0">
				<td valign="top" halign="center" bgcolor="#003366">

					<!--NAVIGATION BAR REGION START-->
					<table width="110" border="0" cellspacing="0" cellpadding="8" align="center">
						<tr valign="top">
							<td>
								<p align="center">
									<img src="/images/nav/logo.gif" width="100" height="110" alt="Mercury Tours"><br>	  </p>
									<table border="2" cellspacing="0" cellpadding="2" align="center"
										bordercolor="#000000">
										<tr class=mouseOut onMouseOut="changeStyle(this, 'mouseOut')"
											onMouseOver="changeStyle(this, 'mouseOver')">
											<td width="20" height="19"></a></td>
											<td width="80" height="19" bgcolor="#FFC455">
												<font color="#000000"><a href="mercurywelcome.php">Home</a></font>
											</td>
										</tr>
										<tr class=mouseOut onMouseOut="changeStyle(this, 'mouseOut')"
											onMouseOver="changeStyle(this, 'mouseOver')">
											<td width="20" height="19"></a></td>
											<td width="80" height="19" bgcolor="#FFC455"><a
													href="mercuryreservation.php">Flights</a></td>
										</tr>

										<tr class=mouseOut onMouseOut="changeStyle(this, 'mouseOut')"
											onMouseOver="changeStyle(this, 'mouseOver')">
											<td width="20" height="19"></a></td>
											<td width="80" height="19" bgcolor="#FFC455"><a
													href="mercuryunderconst.php">Hotels</a></td>
										</tr>
										<tr class=mouseOut onMouseOut="changeStyle(this, 'mouseOut')"
											onMouseOver="changeStyle(this, 'mouseOver')">
											<td width="20" height="19"></a></td>
											<td width="80" height="19" bgcolor="#FFC455">
												<font color="#000000"><a href="mercuryunderconst.php">Car Rentals</a>
												</font>
											</td>
										</tr>
										<tr class=mouseOut onMouseOut="changeStyle(this, 'mouseOut')"
											onMouseOver="changeStyle(this, 'mouseOver')">
											<td width="20" height="19"></a></td>
											<td width="80" height="19" bgcolor="#FFC455"><a
													href="mercurycruise.php">Cruises</a></td>
										</tr>
										<tr class=mouseOut onMouseOut="changeStyle(this, 'mouseOut')"
											onMouseOver="changeStyle(this, 'mouseOver')">
											<td width="20" height="19"></a></td>

											<td width="80" height="19" bgcolor="#FFC455"><a
													href="mercuryunderconst.php">Destinations</a></td>
										</tr>
										<tr class=mouseOut onMouseOut="changeStyle(this, 'mouseOut')"
											onMouseOver="changeStyle(this, 'mouseOver')">
											<td width="20" height="19"></a></td>
											<td width="80" height="19" bgcolor="#FFC455" height="18"><a
													href="mercuryunderconst.php">Vacations</a></td>
									</table>
									<p align="center"><img src="/images/nav/html.gif" width="100" height="61" border="0">
										<font face="Arial, Helvetica, sans-serif" color=white size="1"><u>Use Java
												Version</u></font>
									</p>
									<p align="center"><img src="/images/nav/boxad1.gif" width="88" height="78"></p>
						</tr>
					</table>

					<!--NAVIGATION BAR REGION END-->

				</td>
		</table>
		</td>
		<td valign="top">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td bgcolor="#003366" height="63">

						<!--AD REGION START-->
						<img src="/images/banner2.gif" width="488" height="63" border="0" hspace="8" vspace="4">

						<!--AD REGION END-->

					</td>
				</tr>
				<tr>
					<td height="16" bgcolor="#FF9900" align="right">


						<!--HEADER REGION START-->
						<table border="1" bordercolor="#000000" cellpadding="0" cellspacing="0" height=" 16"
							background=" black">
							<tr>

								<td class=mouseOut width="67" height="33" align="center"
									onMouseOut="changeStyle(this, 'mouseOut')"
									onMouseOver="changeStyle(this, 'mouseOver')"><a href="mercurysignon.php">SIGN-ON</a>
								</td>
								<td class=mouseOut width="77" height="33" align="center"
									onMouseOut="changeStyle(this, 'mouseOut')"
									onMouseOver="changeStyle(this, 'mouseOver')"><a
										href="mercuryregister.php">REGISTER</a></td>
								<td class=mouseOut width="73" height="33" align="center"
									onMouseOut="changeStyle(this, 'mouseOut')"
									onMouseOver="changeStyle(this, 'mouseOver')"><a
										href="mercuryunderconst.php">SUPPORT</a></td>
								<td class=mouseOut width="74" height="33" align="center"
									onMouseOut="changeStyle(this, 'mouseOut')"
									onMouseOver="changeStyle(this, 'mouseOver')"><a
										href="mercuryunderconst.php">CONTACT</a></td>
							</tr>
						</table>

						<!--HEADER REGION END-->

					</td>
				</tr>
				<tr>
					<td height="14" align="right">


						<!--Space REGION START-->

						<!--Space REGION END-->

					</td>

				</tr>
				<tr>
					<td>

						<!--CONTENT REGION START-->
						<table border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td width="14">

								</td>
								<td>

									<body bgcolor="#FFFFFF" vlink="#666666" link="#000099">
										<table width="492" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td><img src="/images/masts/cruise_special.gif" width="492" height="30"></td>
											</tr>
											<tr>
												<td>
													<table width="100%" border="0" cellspacing="0" cellpadding="5">
														<tr>
															<th width="54%" valign="top" scope="col"><br>
																<img src="/images/alaskan_cruise.gif" width="273" height="298"></th>
															<td width="46%" scope="col">
																<p align="left">
																	<font face="arial narrow" size="5" color="blue"><br>
          7 nights from $850</font>
																		<font face="arial" size="1" color="black"><br>
          per person/double<br>
          Includes tax and port charges!</font>
																			<p align="left">
																				<font face="arial" size="2">Your cruise
																					includes:</font>
																			</p>
																			<div align="left">
																				<ul>
																					<li>
																						<font color="black" size="2"
																							face="arial">Seven night
																							Alaskan cruise aboard the
																							Prince of Tides </font>
																					<li>
																						<font color="black" size="2"
																							face="arial">Saturday
																							departures from Seattle via
																							the Inside Passage to
																							Juneau, Hubbard Glacier,
																							Yakutat Bay </font>
																					<li>
																						<font color="black" size="2"
																							face="arial">Shipboard
																							accomodations include: all
																							meals, daily activities and
																							nightly entertainment</font>
																				</ul>
																			</div>
																			<div align="left"></div>
																			<p align="center" class="text"><a
																					href="mercuryreservation.php"><img src="/images/reservation_open.gif" alt="Reservations Open" width="166" height="80" border="0"></a></strong>
																			</p>
															</td>
														</tr>
														<tr>
															<th colspan="2" scope="col"><br>
																<table border="0" cellspacing="0" cellpadding="2">
																	<tr valign="middle" bgcolor="#CCCCCC"
																		class="style2">
																		<td height="20" colspan="4" align="left">
																			<span class="style6">Cruise Itinerary </span>
																		</td>
																	</tr>
																	<tr class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<span class="style9"><font size="2" color="black">Day</font></span>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<span class="style9"><font size="2" color="black">Port of Call</font></span>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<span class="style9"><font size="2" color="black">Arrival</font></span>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<span class="style9"><font size="2" color="black">Departure</font></span>
																		</td>
																	</tr>
																	<tr class="style2">
																		<td>&nbsp;</td>
																	</tr>
																	<tr bgcolor="#CCCCCC" class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Sat</font>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<strong><font face="arial" size="2" color="black">Seattle</font></strong>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<strong><font face="arial" size="2" color="black">---</font></strong>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">5
																				pm</font>
																		</td>
																	</tr>
																	<tr class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Sun</font>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Inside Passage</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<strong><font face="arial" size="2" color="black">---</font></strong>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<strong><font face="arial" size="2" color="black">--</font></strong>
																		</td>
																	</tr>
																	<tr bgcolor="#CCCCCC" class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Mon</font>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Juneau, Alaska</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Noon</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">11
																				pm</font>
																		</td>
																	</tr>
																	<tr class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Tue</font>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Skagway, Alaska</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">7
																				am</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">5
																				pm</font>
																		</td>
																	</tr>
																	<tr bgcolor="#CCCCCC" class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Wed</font>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Haines, Alaska</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">6
																				pm</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">11
																				pm</font>
																		</td>
																	</tr>
																	<tr class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Thu</font>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Ketchikan, Alaska</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">1
																				pm</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">8
																				pm</font>
																		</td>
																	</tr>
																	<tr bgcolor="#CCCCCC" class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Fri</font>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Inside Passage</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<strong><font face="arial" size="2" color="black">--</font></strong>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<strong><font face="arial" size="2" color="black">--</font></strong>
																		</td>
																	</tr>
																	<tr class="style2">
																		<td width="50" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				Sat</font>
																		</td>
																		<td width="200" height="20" align="left"
																			valign="top">
																			<strong><font face="arial" size="2" color="black">Seattle</font></strong>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">
																			<font face="arial" size="2" color="black">
																				8:30 am</font>
																		</td>
																		<td width="100" height="20" align="left"
																			valign="top">&nbsp;</td>
																	</tr>
																</table>
															</th>
														</tr>
													</table> <img src="/images/spacer.gif" width="1" height="10"></td>
											</tr>
										</table>
										<p>&nbsp;</p>
									</body>
								</td>
							</tr>
						</table>

						<!--CONTENT REGION END-->

					</td>
				</tr>

				<tr>
					<td>

						<!--FOOTER REGION START-->


						<!--FOOTER REGION START-->
						<div class="footer">
							&copy; 2005, Mercury Interactive (v. 011003-1.01-058)
						</div>
						<!--FOOTER REGION END-->


						<!--FOOTER REGION END-->

					</td>
				</tr>
		</td>
		</tr>
		</table>
		</table>
	</div>
</body>

</html>
Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions