Sponsored Content
Top Forums UNIX for Dummies Questions & Answers cant make a http get request using wget Post 302289802 by Ikon on Friday 20th of February 2009 01:49:59 PM
Old 02-20-2009
the wget request IS working.

The "500 Internal Server Error" is the response from the webserver. Look in the logs on the webserver and find out what is wrong with the request.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

wget using wildcards using http

Hi there, probably a really simple question but i want to download all .rpm files from a web repository which happens to be http and not ftp Ive tried using wget, but as far as i can see it doesnt allow for wilcards (ie wget http://address/*.rpm) does anybody know i can get all these files in... (2 Replies)
Discussion started by: hcclnoodles
2 Replies

2. UNIX for Dummies Questions & Answers

unix script http request

Hi everybody, I have a *.vbs file which I want to run automatically. I want to know if there is anyway to implement the given example for e.g "http://255.255.255.55/script.vbs" what I mean is does anyone know how to make an http request from a unix script?? Thanks in advance!!!!!!!!!!! (1 Reply)
Discussion started by: arksal
1 Replies

3. Shell Programming and Scripting

Http request in Linux

Hi, i need a guide how to write a script which i can do a http request. Let say the request look like below; http://www.test.com?txid=1&type=service&server=linux I have a list of "txid" (in *.txt) and need to run all "txid" acordingly. So that mean, every transaction i have to refer "txid"... (7 Replies)
Discussion started by: malaysoul
7 Replies

4. UNIX for Dummies Questions & Answers

http request forward

Hi, Maybe it's a stupid question, anyway here goes.. I have an Apache web server on Solaris box, let's say A, with a public ip and a web application on a Linux box, uhmmm B, on a private lan with a private ip. I want the people from outside to connect to the app, but its inside the lan,... (4 Replies)
Discussion started by: piltrafa
4 Replies

5. UNIX for Dummies Questions & Answers

HTTP request

Can anybody tell about http request processing in shell script..? (3 Replies)
Discussion started by: noufal
3 Replies

6. Web Development

Copy and forward apache http request

Hello, I am using apache 2.2 and I need to have certain http requests (those including example.com for instance) to be executed normally and forwarded to another server. With mod_rewrite, I could easily forward but then the input request would not be executed on my server. Right? Am I... (1 Reply)
Discussion started by: JCR
1 Replies

7. Shell Programming and Scripting

Formatting wget request within script

When using a browser and calling this url .. the data returns the proper range of information ichart dot finance dot yahoo dot com/table.csv?s=YAHOO&a=3&b=14&c=2012&d=03&e=20&f=2012&g=d&ignore.csv (geeze wont let me post url's sorry ) However in my script the formatting is messing up on... (4 Replies)
Discussion started by: harte
4 Replies

8. Programming

C++ http GET request using sockets

Hello I am trying to communicate with a server that is ready to accept HTTP GET requests and send back data per the request. However, I have very little experience in socket programming and I don't really know how to debug this. Googling on the web hasn't yielded much, except people saying I... (2 Replies)
Discussion started by: flagman5
2 Replies

9. Shell Programming and Scripting

http request

I am running a website but I still have problems with the "service temporarily unavailable error". I want to make a simple check if the website is up and running. Does anybody has an idea how to do it? (the site is password protected, so you have to add a user and pwd before logging in). ... (2 Replies)
Discussion started by: jurgen
2 Replies

10. Shell Programming and Scripting

Parsing the http post request

Hi, I am trying to write a shell script to parse the post request data that it received to a xml file. Below is the post request data that script is receiving. -----------------------------7dd2339190c8e Content-Disposition: form-data; name="param1" 1... (2 Replies)
Discussion started by: jdp
2 Replies
SERVEFILE(1)							   User Commands						      SERVEFILE(1)

NAME
servefile - small HTTP-Server for temporary file transfer SYNOPSIS
servefile [-h] [--version] [-p PORT] [-u] [-s MAX_UPLOAD_SIZE] [-l] [--ssl] [--key KEY] [--cert CERT] [-a user:password] file/directory DISCLAIMER
Do not use this as a normal web server. This server is optimized for running a short time and to send files to other people, not for doing high-performance static file serving. DESCRIPTION
Servefile is a small HTTP-server intended for temporary file transfer mostly in the local network. It aims to make transferring single files as painless as possible and to replace tar/netcat solutions. With just a file as argument servefile serves just that one file and redirects all HTTP requests to that file. Uploads can be done with curl, wget (see EXAMPLES) or a normal browser. In upload mode with -u servefile creates a directory and saves all uploaded files into that directory. When uploading with curl or wget the filename is extracted from the path part of the url used for the upload. For SSL support python-openssl (pyssl) needs to be installed. If no key and cert is given, servefile will generate a key pair for you and display its fingerprint. In --tar mode the given file or directory will be packed on (each) request and piped to the client through the HTTP connection, thus serv- ing always the latest content of the directory and preventing temporary file creaton. Tar files will be created containing only the lowest directory name from the full path, so using /path/to/dir/ as file/directory argument will create a tar file starting with the dir/ direc- tory. When giving a file as argument, only the file without any path will be in the tarfile. Symlinks will not be dereferenced. COMMAND SUMMARY
positional arguments: file/directory file or directory (with -l or -u) which should be served or uploaded to optional arguments: -h, --help Show a help message and exit --version Show program's version number and exit -p PORT, --port PORT Port to listen on -u, --upload Enable uploads to a given directory -s MAX_UPLOAD_SIZE, --max-upload-size MAX_UPLOAD_SIZE Limit upload size in kB. Size modifiers are allowed, e.g. 2G, 12MB, 1B. -l, --list-dir Show directory indexes and allow access to all subdirectories --ssl Enable SSL. If no key/cert is specified one will be generated. --key KEY Key file to use for SSL. If no cert is given with --cert the key file will also be searched for a cert --cert CERT Certfile to use for SSL -a user:password, --auth user:password Set user and password for HTTP basic authentication --realm REALM Set a realm for HTTP basic authentication. This is an arbitrary string which is displayed when doing HTTP basic authentication -t, --tar Enable on the fly tar creation for given file or directory. Note: Download continuation will not be available. -c method, --compression method Set compression method, only in combination with --tar. Can be one of none, gzip, bzip2. -4, --ipv4-only Listen on IPv4 only -6, --ipv6-only Listen on IPv6 only EXAMPLES
Serving a single file with SSL and HTTP Basic auth: servefile --ssl --auth foo:bar the_file Enabling uploads to a directory: servefile -u dir/ Uploading file foo as bar to servefile via command line: curl -X PUT http://ip:port/bar --data-binary @foo curl -X POST http://ip:port/bar --data-binary @foo wget http://ip:port/bar --post-file=foo Serving a on the fly generated tar.gz file of a directory: servefile --tar -c gzip path/to/dir AUTHOR
servefile is developed by Sebastian Lohff <seba@someserver.de> servefile 0.4.2 April 2012 SERVEFILE(1)
All times are GMT -4. The time now is 05:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy