This is a migrated thread and some comments may be shown as answers.

capturing the http request

7 Answers 6447 Views
Windows
This is a migrated thread and some comments may be shown as answers.
gorants
Top achievements
Rank 1
gorants asked on 30 Jun 2015, 08:05 PM

Hello,

I am using Fiddler Web Debugger (v2.5.1.2).  I am new to fiddler tool. i have question on capturing the request.

In application, when i choose record in table grid and click button on panel then it will prompt for confirmation. if i click confirm button then request will sent and processed.

here basically i want to capture the entire request was built/sent to server when i click confirmation pop up.


i only see like below in Request headers, could you help me on this.

POST /xx/outbound/ui/abc.jsflps HTTP/1.1

 

Appreciate your inputs

7 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 30 Jun 2015, 09:03 PM
Fiddler captures the entire HTTP request and the entire HTTP response. You use the Inspectors to view the request and response.

The HEADERS inspectors show the headers on the request and on the response. The TextView/Raw and other inspectors show the bodies of the request and the response.

You may find the Getting Started video at http://www.telerik.com/videos/fiddler very helpful.

Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
gorants
Top achievements
Rank 1
answered on 06 Jul 2015, 02:29 PM

Thanks for your response.  basically i want to capture the http request and i want to use that request in java code. 

 below is the http request generated in Raw section upon i entered value ( 42) in text box .. click confirmation button. 

here my question is how can i use this request, it generated big request . i assumed in my request i see only 42 .

 

 

 

http request

POST http://test.com:12000/nm/taskmgmt/ui/TaskHdrList.jsflps HTTP/1.1
Host: test.com:12000
Connection: keep-alive
Content-Length: 8723
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://test.com:12000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://test.com:12000/nm/taskmgmt/ui/TaskHdrList.jsflps?fotype=NM_TASK_LIST_INQ&tranId=29&windowId=screen-2411286
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: __utma=20479524.1941135075.1429552973.1429552973.1429703528.2; __utmz=20479524.1429703528.2.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); __utmv=20479524.|1=User%20roles=anonymous%20user=1; JSESSIONID=1cb1pvz16m3rk11qfriddl4qv8; sd-touch-mode=false; NMs_JSESSIONID=0KWd2fUa+hGzH2+T-b0A1msf

dataForm=dataForm&uniqueToken=1&MANH-CSRFToken=pF6pq1oyeisAg4iGIig4K65X9YHS2RV405chmg99CrY%3D&helpurlEle=%2Flcom%2Fcommon%2Fjsp%2Fhelphelper.jsp%3Fserver%3D2D47FD6344DB03FD1D5D3B0B95D4ED74AF47D196C5FFB7A4CC672A6F120C5A5B%26uri%3D%252FNM%252Ftaskmgmt%252Fui%252FTaskHdrList.jsflps&dataForm%3AfltrListFltrId%3AfieldName=&dataForm%3AfltrListFltrId%3AfilterName=FL_NMADMIN&dataForm%3AfltrListFltrId%3Aowner=NMADMIN&dataForm%3AfltrListFltrId%3AobjectType=FL_FILTER&dataForm%3AfltrListFltrId%3AfilterObjectType=&dataForm%3AfltrListFltrId%3Afield0value1=&dataForm%3AfltrListFltrId%3Afield0=FILTER.FILTER_NAME&dataForm%3AfltrListFltrId%3Afield0operator=&dataForm%3AfltrListFltrId%3Afield1value1=&dataForm%3AfltrListFltrId%3Afield1=FILTER.IS_DEFAULT&dataForm%3AfltrListFltrId%3Afield1operator=&dataForm%3AfltrListFltrId%3Afield2value1=&dataForm%3AfltrListFltrId%3Afield2=FILTER.IS_PRIVATE&dataForm%3AfltrListFltrId%3Afield2operator=&dataForm%3AfltrListFltrId%3Afield3value1=&dataForm%3AfltrListFltrId%3Afield3=FILTER.OWNER&dataForm%3AfltrListFltrId%3Afield3operator=&dataForm%3AfltrListFltrId%3Afield4value1=&dataForm%3AfltrListFltrId%3Afield4=FILTER.IS_DELETED&dataForm%3AfltrListFltrId%3Afield4operator=&dataForm%3AfltrListFltrId%3AfltrCondition=&dataForm%3AfltrListFltrId%3AfltrCrtSel=&windowId=screen-2411286&ItemMaskComp_dependantId=&ItemMaskComp_returnId=&defaultBU=1&dataForm%3AItemLookup_selectOneMenu=-1&dataForm%3AisFind=&findHiddenParam=&dataForm%3AItemLookup_PrimaryAliasText=&dataForm%3AItemLookup_PrimaryAliasTextds=&dataForm%3AItemLookup_PrimaryXREF_Textds=&itemName=&dataForm%3AItem_LookUP_ItemObjectId=&dataForm%3AownerUserId1=&userSetName=&dataForm%3AtaskHdrIdOut=null&dataForm%3AinputChngPrtyId1=&dataForm%3AchngPrtyValueID=null&dataForm%3AisHeaderDetail=Header&taskCriteriaName=&dataForm%3AtaskCreationCriteria1=&dataForm%3AallocInvnDtlId1=&pgBrkSetName=&docIdSetName=&taskIdSetName=&dataForm%3AdocIdValue=&dataForm%3AtaskIdValue1=&dataForm%3AviewTaskValue1=&dataForm%3AviewTaskTemp1=&dataForm%3AtranName=TaskListReport&targetLink=%23%7BtaskHdrBackingBean.releaseTaskAction%7D&dataForm%3AprimaryKeys=&dataForm%3Alview%3AfilterId%3AradioSelect=quick&dataForm%3Alview%3AfilterId%3A_fltrExpColTxt=DONE&dataForm%3Alview%3AfilterId%3A_filtrExpColState=collapsed&dataForm%3Alview%3AfilterId%3A_filtrExpIconSrc=%2Flps%2Fresources%2Fthemes%2Ficons%2Fmablue%2Farrow_expand.gif&dataForm%3Alview%3AfilterId%3A_filtrColIconSrc=%2Flps%2Fresources%2Fthemes%2Ficons%2Fmablue%2Farrow_collapse.gif&dataForm%3Alview%3AfilterId%3A_filtrdropDownSrc=%2Flps%2Fresources%2Fthemes%2Ficons%2Fmablue%2FarrowDown.gif&dataForm%3Alview%3AfilterId%3Afield10=TaskID&dataForm%3Alview%3AfilterId%3Afield10operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject10=&dataForm%3Alview%3AfilterId%3Afield10value1ecId=&dataForm%3Alview%3AfilterId%3Afield10value1=42&dataForm%3Alview%3AfilterId%3Afield20=TaskType&dataForm%3Alview%3AfilterId%3Afield20operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject20=&dataForm%3Alview%3AfilterId%3Afield20value1=&dataForm%3Alview%3AfilterId%3Afield30=HeaderStatus&dataForm%3Alview%3AfilterId%3Afield30operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject30=&dataForm%3Alview%3AfilterId%3Afield30value1=&dataForm%3Alview%3AfilterId%3Afield60=Item&dataForm%3Alview%3AfilterId%3Afield60operator=DY&dataForm%3Alview%3AfilterId%3AsubObject60=&dataForm%3Alview%3AfilterId%3AitemLookUpId=&dataForm%3Alview%3AfilterId%3Afield80=CreateDateTime&dataForm%3Alview%3AfilterId%3Afield80operator=BT&dataForm%3Alview%3AfilterId%3AsubObject80=&dataForm%3Alview%3AfilterId%3Afield80value1=&dataForm%3Alview%3AfilterId%3Afield80currentTime1=&dataForm%3Alview%3AfilterId%3Afield80value2=&dataForm%3Alview%3AfilterId%3Afield80currentTime2=&dataForm%3Alview%3AfilterId%3Afield90=NMOrder&dataForm%3Alview%3AfilterId%3Afield90operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject90=&dataForm%3Alview%3AfilterId%3Afield90value1ecId=&dataForm%3Alview%3AfilterId%3Afield90value1=&dataForm%3Alview%3AfilterId%3Afield40=WaveNumber&dataForm%3Alview%3AfilterId%3Afield40operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject40=&dataForm%3Alview%3AfilterId%3Afield40value1=&dataForm%3Alview%3AfilterId%3Afield50=Priority&dataForm%3Alview%3AfilterId%3Afield50operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject50=&dataForm%3Alview%3AfilterId%3Afield50value1=&dataForm%3Alview%3AfilterId%3Afield200=TaskGenerationReferenceCode&dataForm%3Alview%3AfilterId%3Afield200operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject200=&dataForm%3Alview%3AfilterId%3Afield200value1=&dataForm%3Alview%3AfilterId%3Afield210=TaskGenerationReferenceNumber&dataForm%3Alview%3AfilterId%3Afield210operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject210=&dataForm%3Alview%3AfilterId%3Afield210value1ecId=&dataForm%3Alview%3AfilterId%3Afield210value1=&dataForm%3Alview%3AfilterId%3Afield220=TaskCompletionReferenceCode&dataForm%3Alview%3AfilterId%3Afield220operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject220=&dataForm%3Alview%3AfilterId%3Afield220value1=&dataForm%3Alview%3AfilterId%3Afield230=TaskCompletionReferenceNumber&dataForm%3Alview%3AfilterId%3Afield230operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject230=&dataForm%3Alview%3AfilterId%3Afield230value1ecId=&dataForm%3Alview%3AfilterId%3Afield230value1=&dataForm%3Alview%3AfilterId%3Afield240=PickCartType&dataForm%3Alview%3AfilterId%3Afield240operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject240=&dataForm%3Alview%3AfilterId%3Afield240value1=&dataForm%3Alview%3AfilterId%3Afield250=PickCartToteNbr&dataForm%3Alview%3AfilterId%3Afield250operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject250=&dataForm%3Alview%3AfilterId%3Afield250value1=&dataForm%3Alview%3AfilterId%3Afield280=DocumentID&dataForm%3Alview%3AfilterId%3Afield280operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject280=&dataForm%3Alview%3AfilterId%3Afield280value1ecId=&dataForm%3Alview%3AfilterId%3Afield280value1=&dataForm%3Alview%3AfilterId%3Afield281=InventoryNeedType&dataForm%3Alview%3AfilterId%3Afield281operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject281=&dataForm%3Alview%3AfilterId%3Afield281value1=&dataForm%3Alview%3AfilterId%3Afield282=iLPNNumber&dataForm%3Alview%3AfilterId%3Afield282operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject282=&dataForm%3Alview%3AfilterId%3Afield282value1ecId=&dataForm%3Alview%3AfilterId%3Afield282value1=&dataForm%3Alview%3AfilterId%3Afield283=oLPNNumber&dataForm%3Alview%3AfilterId%3Afield283operator=%3D&dataForm%3Alview%3AfilterId%3AsubObject283=&dataForm%3Alview%3AfilterId%3Afield283value1ecId=&dataForm%3Alview%3AfilterId%3Afield283value1=&dataForm%3Alview%3AfilterId%3AcurrentAppliedFilterId=-1&dataForm%3Alview%3AfilterId%3AfilterId_quickFilterGroupButton_mainButtonCategory=-1&dataForm%3Alview%3AfilterId%3AfilterId_quickFilterGroupButton_mainButtonIndex=-1&dataForm%3Alview%3AfilterId%3AfilterId_quickFilterGroupButton_changeDefault=false&dataForm%3Alview%3AfilterId%3AfilterId_savedFilterGroupButton_mainButtonCategory=-1&dataForm%3Alview%3AfilterId%3AfilterId_savedFilterGroupButton_mainButtonIndex=-1&dataForm%3Alview%3AfilterId%3AfilterId_savedFilterGroupButton_changeDefault=false&dataForm%3Alview%3AfilterId%3AdummyToGetPrefix=&dataForm%3Alview%3AfilterId%3AfilterId=2147483647&dataForm%3Alview%3AfilterId%3Aowner=NMTEST&customParams+=%26%26%26&queryPersistParameter=&dataForm%3Alview%3AfilterId%3AobjectType=NM_TASK_LIST_INQ&isJSF=true&filterScreenType=ON_SCREEN&dataForm%3Alview%3AdataTable%3ApagerBoxValue=&dataForm%3Alview%3AdataTable%3AisPaginationEvent=&dataForm%3Alview%3AdataTable%3ApagerAction=&dataForm%3Alview%3AdataTable_deleteHidden=&dataForm%3Alview%3AdataTable_selectedRows=%23%3A%2342%3Anull%3A42%23%3A%23&dataForm%3Alview%3AdataTable%3AisSortButtonClick=taskHdr.taskId&dataForm%3Alview%3AdataTable%3AsortDir=asc&dataForm%3Alview%3AdataTable%3AcolCount=&dataForm%3Alview%3AdataTable%3AtableClicked=&dataForm%3Alview%3AdataTable%3AtableResized=false&dataForm%3Alview%3AdataTable_checkAll=on&dataTable_hdnMaxIndexHldr=1&checkAll_c0_dataForm%3Alview%3AdataTable=0&dataForm%3Alview%3AdataTable%3A0%3APK_0=42%3Anull%3A42&dataForm%3Alview%3AdataTable%3A0%3AstatCodeVal=10&dataForm%3Alview%3AdataTable%3A0%3AstatCodeDescVal=Released&dataForm%3Alview%3AdataTable%3A0%3AtaskHeaderIdValue=42&dataForm%3Alview%3AdataTable%3A0%3AintVal=11&dataForm%3Alview%3AdataTable_trs_pageallrowskey=42%3Anull%3A42%23%3A%23&dataForm%3Alview%3AdataTable_selectedRows=&dataForm%3Alview%3AdataTable_selectedIdList=&dataForm%3Alview%3AdataTable_trs_allselectedrowskey=dataTable%24%3A%241436190779470&dataForm%3Atest=false&moreActionTargetLinkrmbuttons_1=&moreActionButtonPressedrmbuttons_1=&backingBeanName=taskHdrBackingBean&javax.faces.ViewState=6269863471872977281%3A6401545470067546291

0
Eric Lawrence
Telerik team
answered on 06 Jul 2015, 03:05 PM
Hi, 

When browsers send html forms to servers, they tend to send the entire form, including any other text boxes and even hidden form fields. 

Your "42" value is included in the POST data by the text field10value1=42 which you will find in the middle of the request.

Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
gorants
Top achievements
Rank 1
answered on 06 Jul 2015, 06:54 PM

Thanks for your response.

in this case my http request will be like this?.  i want to use fiddler to capture exact http request how can i achieve this.

http://test.com:12000/nm/taskmgmt/ui/TaskHdrList.jsflps?field10value1=42 

0
Eric Lawrence
Telerik team
answered on 06 Jul 2015, 07:09 PM
Hi, gorants:

It's very likely the case that your HTTP request must look pretty much identical to what Fiddler captured; Fiddler captured exactly what the browser sent. Omitting any of the fields when sending a request again will likely cause the "incomplete" request to not work.

Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
gorants
Top achievements
Rank 1
answered on 07 Jul 2015, 01:18 PM

Hi Eric,

 In this case do i have to use whole request by changing  field10value1=42 value  every time for new requests?.  i feel request is not readable , is my application or fiddler is not the right choice to get http request here?.  my requirement is to capture how web http request made and use that request to make call from java. 

 

Appreciate your inputs

0
Eric Lawrence
Telerik team
answered on 07 Jul 2015, 08:15 PM
Hi, gorants:

>In this case do i have to use whole request by changing  field10value1=42 value  every time for new requests?. 

I don't really understand what you're asking. If you're saying "Do I need to change this value in order to use a different value?" the answer is "probably." If you're asking "Do I need to keep all the other data in the request in order to send a different value?" the answer is "probably." If you're asking "Can I just change this one value and keep all the other values the same and have it work" the answer is "Maybe, it entirely depends on how the server application was written. You'll have to try it to see.

i feel request is not readable

The request might be hard for you to read, but your browser and server find it very straightforward.

is my application or fiddler is not the right choice to get http request here?.

The application seems to send the HTTP request just fine and Fiddler captures it just fine, so they both seem like fine "choices" to me.

Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Windows
Asked by
gorants
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
gorants
Top achievements
Rank 1
Share this question
or