{"action":"created","issue":{"url":"https://api.github.com/repos/h3xstream/http-script-generator/issues/10","labels_url":"https://api.github.com/repos/h3xstream/http-script-generator/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/h3xstream/http-script-generator/issues/10/comments","events_url":"https://api.github.com/repos/h3xstream/http-script-generator/issues/10/events","html_url":"https://github.com/h3xstream/http-script-generator/issues/10","id":79388919,"number":10,"title":"Feature requests: multiple requests, parameters ","user":{"login":"gremwell","id":633734,"avatar_url":"https://avatars.githubusercontent.com/u/633734?v=3","gravatar_id":"","url":"https://api.github.com/users/gremwell","html_url":"https://github.com/gremwell","followers_url":"https://api.github.com/users/gremwell/followers","following_url":"https://api.github.com/users/gremwell/following{/other_user}","gists_url":"https://api.github.com/users/gremwell/gists{/gist_id}","starred_url":"https://api.github.com/users/gremwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gremwell/subscriptions","organizations_url":"https://api.github.com/users/gremwell/orgs","repos_url":"https://api.github.com/users/gremwell/repos","events_url":"https://api.github.com/users/gremwell/events{/privacy}","received_events_url":"https://api.github.com/users/gremwell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/h3xstream/http-script-generator/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T10:05:14Z","updated_at":"2015-06-15T02:06:03Z","closed_at":null,"body":"Hello there,\r\n\r\nWonderful plugin, saved my sanity. Couple of feature requests:\r\n\r\n1. Scripting multiple requests: select multiple requests in Burp, choose Generate Script from context menu, the generated script contains all selected requests. The cookie jar is set up once in the beginning, so any cookies set in responses are retained and used automatically. Ideally, any form parameter values returned in responses (i.e. CSRF tokens) are used, but that will require form parsing. Even without it would be still great scripting a sequence of requests.\r\n\r\n2. Parameterizing scripts. Adding configurable parameters for the base URL (or host name) and form fields being submitted. Ideally should be configurable from GUI.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/h3xstream/http-script-generator/issues/comments/111898728","html_url":"https://github.com/h3xstream/http-script-generator/issues/10#issuecomment-111898728","issue_url":"https://api.github.com/repos/h3xstream/http-script-generator/issues/10","id":111898728,"user":{"login":"h3xstream","id":593130,"avatar_url":"https://avatars.githubusercontent.com/u/593130?v=3","gravatar_id":"","url":"https://api.github.com/users/h3xstream","html_url":"https://github.com/h3xstream","followers_url":"https://api.github.com/users/h3xstream/followers","following_url":"https://api.github.com/users/h3xstream/following{/other_user}","gists_url":"https://api.github.com/users/h3xstream/gists{/gist_id}","starred_url":"https://api.github.com/users/h3xstream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3xstream/subscriptions","organizations_url":"https://api.github.com/users/h3xstream/orgs","repos_url":"https://api.github.com/users/h3xstream/repos","events_url":"https://api.github.com/users/h3xstream/events{/privacy}","received_events_url":"https://api.github.com/users/h3xstream/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T02:06:03Z","updated_at":"2015-06-15T02:06:03Z","body":"## Multiple request and chaining values\r\n\r\nThere are many things I see that will make the implementation hard.\r\n - Encoding : There an tons of way to encode a value\r\n - Duplicate values : The tool could confuse a reason-ability long value with the wrong sources.\r\n - The extraction of the value would require the creation of xpath query (BeautifulSoup like) .. This is not impossible.\r\n\r\nIn summary, I don't think I will put it on road map soon.. I seems that this feature could easily break and therefore be more trouble to use than do the chain manually.\r\n\r\n## Parametrization of scripts\r\n\r\nAny part of the request can be parametrized depending on the use case. I don't see why the hostname is more common than a specific form field or auth credentials.\r\nAlso, it doesn't take much time to extract. Most IDE have a shortcut to extract value to variable.\r\n\r\n-----\r\n\r\nDon't see this comment as a definitive no .. more as a discussion. These are my immediate thoughts."}}