• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

File Download from URL that required posting of URL paramter.

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some body please help to code on java using HTTPUrlConnection protocol to download file from URL which need posting of URL parameter.

In clear way,

Suppose there is an URL : www.xyz.com?fileid=123 under which file resides. But this url require post parameter: __EVENTTARGERT=123&__EVENTARGUMENT=&__VIEWSTATE=; then only file come up. Hence , scenario here is we need to post data in that url then only file come up which may be zip or pdf or doc.

From direct URL, i know file can be downloaded easily but from URL that require posting on information, i don't know how to do....so can some help me please.

Thankx in advance




 
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"baboo sun", please check your private messages for an important administrative matter. Thanks.
 
Ranch Hand
Posts: 282
Eclipse IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
POST requests store their parameters in exactly the same way that GET requests do. The only difference is that GET requests store the parameters in the URL and POST requests store the parameters in the request body.

GET
URL: http://www.example.com/index.jsp?id=123&type=jpeg+image
Body: [empty]

POST
URL: http://www.example.com/index.jsp
Body: id=123&type=jpeg+image

 
Sunil Baboo
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SOLVED
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic